um_core_pages

Hook type

Filter

Description

Extend UM core pages

Parameters

$pages

(array) UM core pages

Usage

<?php add_filter( 'um_core_pages', 'function_name', 10, 1 ); ?>

Examples

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

Change Log

Since: 2.0

Source

um_core_pages is located in includes/class-config.php::line 57