apply_filters( 'um_setup_predefined_page_content', $content, $slug ) → {string}
Filters Ultimate Member predefined pages content when set up the predefined page.
Parameters:
Name | Type | Description |
---|---|---|
$content |
string | Predefined page content. |
$slug |
string | Predefined page slug (key). |
- Since:
- 2.1.0
- Source:
Returns:
Predefined page content.
- Type
- string
Example
function my_um_setup_predefined_page_content( $content, $slug ) {
// your code here
if ( 'my_page_key' === $slug ) {
$content = __( 'My Page content', 'my-translate-key' );
}
return $pages;
}
add_filter( 'um_setup_predefined_page_content', 'my_um_setup_predefined_page_content' );