Add action filter into wp_insert_user and wp_update_user
-
After this filter hook in wp_insert_user:
$data = apply_filters( 'wp_pre_insert_user_data', $data, $update, $update ? (int) $ID : null );
add_action('wp_pre_insert_user_data', $data); is needed to add rules regarding force strong password or restrict display name etc
Also, wp_update_user needs same add_action hook like above reason.
Thank you for your supports always.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Add action filter into wp_insert_user and wp_update_user’ is closed to new replies.