/** * Sets the theme object for use in this class and instantiates the post * type and related needs * * @param RockharborThemeBase $theme */ public function __construct($theme = null) { parent::__construct($theme); register_taxonomy('series', $this->name, array('label' => __('Series', 'rockharbor'), 'sort' => true, 'rewrite' => array('slug' => 'series', 'with_front' => false))); register_taxonomy('teacher', $this->name, array('label' => __('Teachers', 'rockharbor'), 'sort' => true, 'rewrite' => array('slug' => 'teachers', 'with_front' => false))); register_taxonomy_for_object_type('post_tag', $this->name); add_shortcode('single-message', array($this, 'singleMessage')); }
/** * Sets the theme object for use in this class and instantiates the post * type and related needs * * @param RockharborThemeBase $theme */ public function __construct($theme = null) { parent::__construct($theme); register_taxonomy('curriculum_category', $this->name, array('label' => __('Category', 'rockharbor'), 'sort' => true, 'rewrite' => array('slug' => 'curriculum-category', 'with_front' => false))); register_taxonomy_for_object_type('post_tag', $this->name); }
/** * Construtor da classe */ public function __construct() { parent::__construct(); }
/** * Sets the theme object for use in this class and instantiates the Staff post * type and related needs * * @param RockharborThemeBase $theme */ public function __construct($theme = null) { parent::__construct($theme); register_taxonomy('department', $this->name, array('label' => __('Department', 'rockharbor'), 'sort' => true, 'rewrite' => array('slug' => 'department'))); }
public function __construct() { $args = array('labels' => array('name' => __('Series'), 'singular_name' => __('Series')), 'public' => true, 'has_archive' => true, 'show_ui' => TRUE, 'rewrite' => array('slug' => 'series'), 'supports' => array('title', 'editor', 'author'), 'taxonomies' => array(), 'hierarchical' => TRUE); parent::__construct($args); }