- fixed install predefined page script;

This commit is contained in:
Mykyta Synelnikov
2024-02-07 17:38:36 +02:00
parent 8918b61295
commit 5da4994a2a
4 changed files with 168 additions and 44 deletions
+1 -1
View File
@@ -921,7 +921,7 @@ if ( ! class_exists( 'um\Config' ) ) {
* @example <caption>Extend UM core pages.</caption>
* function my_predefined_pages( $pages ) {
* // your code here
* $pages['my_page_key'] = array( 'title' => __( 'My Page Title', 'my-translate-key' ) );
* $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' );