예제 #1
0
 /**
  * Constructor
  *
  * Register a custom post type.
  *
  * @param mixed   $post_type_names The name(s) of the post type, accepts (post type name, slug, plural, singular).
  * @param array   $options         User submitted options.
  */
 public function add($post_type_names, $options = array())
 {
     $cpt = new \CPT($post_type_names, $options);
     $cpt->set_textdomain(ANUNATHEME_TEXTDOMAIN);
     return $cpt;
 }
예제 #2
0
 /**
  * Create a custom post type.
  *
  * @param mixed $post_type_names The name(s) of the post type, accepts (post type name, slug, plural, singular).
  * @param array $options User submitted options.
  */
 public function create($post_type_names, $options = array())
 {
     $cpt = new \CPT($post_type_names, $options = array());
     $cpt->set_textdomain($this->framework->getTextDomain());
     return $cpt;
 }