siteorigin_panels_create_home_page, $page_id
siteorigin_panels_create_home_page, $page_id
Appears in: siteorigin-panels.2.36.0
Hook Type: action
Displaying hooks found in version: siteorigin-panels.2.36.0do_action('siteorigin_panels_create_home_page, $page_id') is found 1 times:
- /inc/admin.php line 986
update_option( 'page_on_front', $page_id ); update_option( 'siteorigin_panels_home_page_id', $page_id ); // Action triggered when creating a new home page through the custom home page interface. do_action( 'siteorigin_panels_create_home_page', $page_id ); } else { // `wp_insert_post` does it's own sanitization, but it seems `wp_update_post` doesn't. $post_content = sanitize_post_field( 'post_content', $post_content, $page_id, 'db' ); // Update the post with changed content to save revision if necessary. wp_update_post( array( 'ID' => $page_id, 'post_content' => $post_content ) );