Tag Info

New answers tagged

0

It has been a while, but I thought that using wp_die() and then hitting the back button would re-display the page with the form data as it was. If that is the case, you could provide a message using wp_die to say what the problem is, possibly how to fix it, and to select the back button in their browser, fix the issue, and then try again. A better way ...


0

The line bellow probably does not read your action correctly that is why it returns 0 url: '<?php echo admin_url( 'admin-ajax.php' ); ?>', data: params + "&action=sendmail", Consider making an AJAX request similar to this: // the value of 'action' is the key that will be identified by the 'wp_ajax_' hook var data = { 'action': 'my_action', ...


1

Just found this on wordpress' codex site for the sanitize_user filter. add_filter('sanitize_user', 'strtolower') According to the site this will force usernames to be lowercase.



Top 50 recent answers are included