Filter: um_core_pages

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

Filters Ultimate Member predefined pages.

Parameters:
Name Type Description
$pages array

Predefined pages.

Since:
  • 1.3.x
Source:
Returns:

Predefined pages.

Type
array
Example

Extend UM core pages.

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