New answers tagged

0

Accessing files within WP installation directly is a bad practice. While you can implement a custom core load routine, it is fragile and impossible to reliably ship in public plugins. There are different approaches to form submission in WP. On of the most appropriate ones (if slightly underknown) is sending form to wp-admin/admin-post.php and using hooks ...


-1

You Should go with "Gravity Forms" http://www.gravityforms.com/ Try This.


-1

Your solution is good and may work very well. But, there are few limitations. eg: 1) What about searching and sorting entries which are posted through your form? 2) What about exporting the data filled into your form to Excel or CSV or PDF? 3) What if you want to print the inserted data. All that can be achieved with Contact Form 7 + Save Contact Form 7 ...


1

Thanks to @Samuel Elh I manage to get this done. I added this to my order-confirmation.php after I included config.php require ('../wp-blog-header.php'); global $wpdb; global $current_user; get_currentuserinfo(); $skrivID = $current_user->ID; Then the insert query, I added the table I wanted the user ID stored in and used the ...


1

wp_login_form is completely separate from wp-login.php - the login_form hook only applies to the latter. For the former, you've got three filters at your disposal: login_form_top - return HTML to be injected right after the opening <form /> tag login_form_middle - return HTML to be injected between the password field and the remember me/submit field ...


2

Implementing your own upload form like this can be a major security vulnerability, you might want to instead use a library/script where such potential issues are already dealt with properly. Here is one I remember using successfully on a project for a similar purpose (user uploaded video)... though it may be more than what you need, it does have more ...


1

You could use the admin_post URL and actions to process form input and then redirect back to your page. The form: <form action="<?php echo admin_url('admin-post.php'); ?>" method="post"> <input type="hidden" name="action" value="do_something"> <input type="hidden" name="origin" value="<?php the_ID(); ?>"> <input ...


0

Have a look at wp-cli and wp-api they could help you automate your process without you needing to know too much about wordpress.



Top 50 recent answers are included