Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
whitelabel framework - build page function
public function build_page() {
if($this->theme_page) add_theme_page($this->page_title, $this->menu_title, $this->capability, $this->id, array($this, 'build_parts'));
else add_submenu_page( $this->parent_id, $this->page_title, $this->menu_title, $this->capability, $this->id, array($this, 'build_parts') );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment