Filter: um_predefined_pages

apply_filters( 'um_predefined_pages', $pages ) → {array}

Filters Ultimate Member predefined pages.

Parameters:
Name Type Description
$pages array

Predefined pages.

Since:
  • 2.8.3
Source:
Returns:

Predefined pages.

Type
array
Example

Extend UM core pages.

function my_predefined_pages( $pages ) {
    // your code here
    $pages['my_page_key'] = array( 'title' => __( 'My Page Title', 'my-translate-key' ), 'content' => 'my-page-predefined-content' );
    return $pages;
}
add_filter( 'um_predefined_pages', 'my_predefined_pages' );