setup() public method

Setup page type.
public setup ( )
Beispiel #1
0
 /**
  * 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();
 }
Beispiel #2
0
 /**
  * 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();
 }