af/form/editing/user_created
Triggered after a user has been created. Not triggered when a user is edited.
<?php
function form_user_created( $user, $form, $args ) {
// Do something with the created user.
// $user is a WP_User object.
}
add_action( 'af/form/editing/user_created/key=FORM_KEY', 'form_user_created', 10, 3 );
Modifiers
af/form/editing/user_created
Applies to all forms.af/form/editing/user_created/key=FORM_KEY
Applies to forms with specific key.af/form/editing/user_created/id=FORM_ID
Applies to forms with specific post ID.