Ejemplo n.º 1
0
 /**
  * Constructor
  * Register Custom Post Types. See documentation in CPT_Core, and in wp-includes/post.php
  *
  * @since 0.1.0
  * @return  null
  */
 public function __construct($plugin)
 {
     $this->plugin = $plugin;
     $this->hooks();
     // Register this cpt
     // First parameter should be an array with Singular, Plural, and Registered name
     parent::__construct(array($this->plugin->name . ' ' . __('Log', 'wds-log-post'), $this->plugin->name . ' ' . __('Logs', 'wds-log-post'), $this->plugin->key), array('supports' => false, 'menu_icon' => 'dashicons-book-alt', 'show_in_admin_bar' => false, 'public' => false, 'hierarchical' => false, 'menu_position' => 100, 'capabilities' => array('create_posts' => is_multisite() ? 'do_not_allow' : false, 'delete_posts' => 'delete_posts')));
 }
Ejemplo n.º 2
0
 /**
  * Constructor
  * Register Custom Post Types. See documentation in CPT_Core, and in wp-includes/post.php
  *
  * @since 0.1.0
  * @return  null
  */
 public function __construct($plugin)
 {
     $this->plugin = $plugin;
     $this->hooks();
     // Register this cpt
     // First parameter should be an array with Singular, Plural, and Registered name
     parent::__construct(array(__('Chapter', 'sed-features'), __('Chapters', 'sed-features'), 'sedf-chapter'), array('supports' => array('title', 'editor', 'excerpt', 'thumbnail')));
 }
 /**
  * Constructor
  * Register Custom Post Types. See documentation in CPT_Core, and in wp-includes/post.php
  *
  * @since  0.1.0
  * @return void
  */
 public function __construct($plugin)
 {
     $this->plugin = $plugin;
     $this->hooks();
     // Register this cpt
     // First parameter should be an array with Singular, Plural, and Registered name
     parent::__construct(array(__('Announcement', 'wds-announcements'), __('Announcements', 'wds-announcements'), 'wds-announcements'), array('supports' => array('title'), 'menu_icon' => 'dashicons-megaphone'));
 }
 /**
  * Constructor
  * Register Taxonomy. See documentation in Taxonomy_Core, and in wp-includes/taxonomy.php
  *
  * @since 0.1.0
  * @param  object $plugin Main plugin object.
  * @return void
  */
 public function __construct($plugin, $args)
 {
     $this->plugin = $plugin;
     // Register this cpt
     // First parameter should be an array with Singular, Plural, and Registered name.
     parent::__construct($args['labels'], $args['args']);
     $this->hooks();
     add_action('plugins_loaded', array($this, 'filter_values'), 4);
 }
Ejemplo n.º 5
0
 /**
  * Constructor
  *
  * @since 1.0.0
  * @return  null
  */
 public function __construct()
 {
     parent::__construct();
 }