New answers tagged

0

I use update_user_meta to update the fields. You can add this in functions.php of your child theme. function save_extra_user_profile_fields( $user_id ) { if ( !current_user_can( 'edit_user', $user_id ) ) { return false; } update_user_meta( $user_id, 'telephone', $_POST['telephone'] ); } add_action( 'personal_options_update', '...


0

for the action label, there are some reserved terms, that wordpress uses internally. so you should avoid this terms (specially true in http_post ot get requests). 's' stands for search, that's why the output is a search result page. here you can find reserved terms: https://codex.wordpress.org/Reserved_Terms If you need very simple forms (so it seems in ...


0

You can use the following function to update custom field value for user update_user_meta( $user_id, $meta_key, $meta_value, $prev_value ); For more information. Please visit


0

As of WordPress 3.0.0 this action is available at the top of the new user form: user_new_form_tag As of WordPress 3.7.0 this action is called at the end of the form (right before submit button): user_new_form You will however need to intercept when clicking submit to save any specific user information to the user's meta


1

I don't know why your $_POST data disappears. However, consider using the admin_post/admin_post_nopriv hook to process the form data using a function on the back end. That's what the function was made for. At the end of the function, you can then redirect to the account-pending page using this wp_redirect(home_url('/account-pending')) .


0

for displaying text box on the front end and storing data in database follow the below steps : Create a php file in your activated theme folder and put the following code : Now Create a page into the Wordpress using page menu on Backend and in Add new Page section you will get the "Page Attribute" section on the right hand side of the page, Now choose the ...


0

No easy way of doing this as far as I know, you would have to check for each select option's posted value, though you could loop like this to make it a little easier... <select name="people"> <?php $found = false; $options = ''; $peopleoptions = array('1-4' => '1 - 4', '4-8' => '4 - 8', '8-12' => '8 - 12', '12+' => '12+'); foreach ($...



Top 50 recent answers are included