Filter: um_change_default_forms_ids

apply_filters( 'um_change_default_forms_ids', $core_ids, $post, $new_status ) → {array}

Filters Ultimate Member default forms IDs.

Parameters:
Name Type Description
$core_ids array

Default form IDs.

$post object

WP_Post object.

$new_status string

New status. 'publish|trash'

Since:
  • 2.8.6
Source:
Returns:

Default forms IDs.

Type
array
Example

Set default profile form ID as 1.

function my_um_change_default_forms_ids( $core_forms, $post, $new_status ) {
    // your code here
    $core_forms['profile'] = 1;
    return $core_forms;
}
add_filter( 'um_change_default_forms_ids', 'my_um_change_default_forms_ids', 10, 3 );