Filter: um_predefined_page_option_key

apply_filters( 'um_predefined_page_option_key', $option_key ) → {string}

Filters the predefined page option key.

Parameters:
Name Type Description
$option_key string

Predefined page option key.

Since:
  • 2.8.3
Source:
Returns:

Predefined page option key.

Type
string
Example

Change option key for login predefined page.

function my_um_predefined_page_option_key( $option_key ) {
    if ( 'core_login' === $option_key ) {
        $option_key = 'core_login_custom';
    }
    return $option_key;
}
add_filter( 'um_predefined_page_option_key', 'my_um_predefined_page_option_key' );