Secure an Exclusive 20% Discount on Lifetime Access - Limited Time Offer. Use code: LIFETIME20

New_user_approve_user_status_update

New_user_approve_user_status_update

Perform An Action When A User’s Status Has Been Updated. Will Execute No Matter What Status Is Changing To.
				
					function status_update( $user_id, $status ) {
    // add code for all status updates
    if ( 'deny' == $status ) {
        // do something when a user's status has been updated to deny
    }
    if ( 'approve' == $status ) {
        // do something when a user's status has been updated to approve
    }
}
add_action( 'new_user_approve_user_status_update', 'status_update' );