Hot answers tagged

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

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 ...


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 ...



Only top voted, non community-wiki answers of a minimum length are eligible