Untitled
unknown
plain_text
a month ago
803 B
9
Indexable
add_action('salesking_dashboard_head', function(){ ?> <script> jQuery(document).ready(function(){ jQuery('#salesking_add_customer_form #username').parent().parent().remove(); jQuery('#salesking_add_customer_form #email-address').parent().parent().remove(); jQuery('#salesking_add_customer_form #password').parent().parent().remove(); }); </script> <?php }); add_filter('salesking_filter_newcustomer_username', function($user){ return wp_generate_password(12, false); }, 10, 1); add_filter('salesking_filter_newcustomer_email', function($email){ return wp_generate_password(12, false).'@gmail.com'; }, 10, 1); add_filter('salesking_filter_newcustomer_password', function($password){ return wp_generate_password(); }, 10, 1);
Editor is loading...
Leave a Comment