prompt/register_subscribe_command/created_user action

If you'd like to customize users created by Postmatic, use this action. Here's an example that changes the role of new users:

add_action( 'prompt/register_subscribe_command/created_user', 'my_prefix_change_role' );

function my_prefix_change_role( WP_User $user ) {
	$user->set_role( 'custom' );
}

Still need help? Contact Us Contact Us