public function show_on_page_children($parent_page_path) { $page = get_page_by_path($parent_page_path); $this->show_on_post_type('page'); if ($page) { $this->settings['show_on']['parent_page_id'] = $page->ID; } else { $this->settings['show_on']['parent_page_id'] = -1; } return $this; }