/** * Admin init. * * Setup the page type. */ public function admin_init() { // Preload all page types. foreach (papi_get_post_types() as $post_type) { papi_get_all_content_types(['args' => $post_type]); } if (!$this->setup_papi()) { return; } $this->page_type->setup(); }
/** * Admin init. * * Setup the page type. */ public function admin_init() { // Preload all page types. foreach (papi_get_post_types() as $post_type) { papi_get_all_page_types(false, $post_type); } if (!$this->setup_papi()) { return; } $this->page_type->setup(); }