Example #1
0
 /**
  * Constructor
  *
  * @since 2.0
  */
 function __construct($post_type)
 {
     $this->set_post_type($post_type);
     $this->key = $post_type;
     $this->post_type = $post_type;
     $this->label = $this->post_type_object->labels->name;
     $this->singular_label = $this->post_type_object->labels->singular_name;
     $this->type = 'post';
     $this->meta_type = 'post';
     $this->page = 'edit';
     $this->menu_type = 'post';
     // Headings
     // Since 3.1
     add_filter("manage_{$post_type}_posts_columns", array($this, 'add_headings'), 100, 1);
     // Deprecated ( as of 3.1 ) Note: This one is still used by woocommerce.
     // Priority set to 100 top make sure the WooCommerce headings are overwritten by CAC
     // Filter is located in get_column_headers().
     // @todo_minor check compatibility issues for this deprecated filter
     add_filter("manage_{$this->page}-{$post_type}_columns", array($this, 'add_headings'), 100, 1);
     // values
     add_action("manage_{$this->post_type}_posts_custom_column", array($this, 'manage_value_callback'), 100, 2);
     // @todo: description
     add_action('load-edit.php', array($this, 'set_columns_on_current_screen'), 1000);
     parent::__construct();
 }
Example #2
0
 function __construct()
 {
     $this->key = 'wp-links';
     $this->label = __('Links');
     $this->singular_label = __('Link');
     $this->type = 'link';
     $this->page = 'link-manager';
     parent::__construct();
 }
Example #3
0
 public function __construct()
 {
     $this->key = 'wp-comments';
     $this->label = __('Comments');
     $this->singular_label = __('Comment');
     $this->type = 'comment';
     $this->meta_type = 'comment';
     $this->page = 'edit-comments';
     parent::__construct();
 }
Example #4
0
 /**
  * @since 2.0
  */
 public function __construct()
 {
     $this->key = 'wp-users';
     $this->label = __('Users');
     $this->singular_label = __('User');
     $this->type = 'user';
     $this->meta_type = 'user';
     $this->page = 'users';
     parent::__construct();
 }
Example #5
0
 /**
  * @since 2.0
  */
 public function __construct($post_type)
 {
     $this->key = $post_type;
     $this->post_type = $post_type;
     $this->type = 'post';
     $this->meta_type = 'post';
     $this->page = 'edit';
     $this->menu_type = 'post';
     $this->set_labels();
     parent::__construct();
 }
Example #6
0
 public function __construct()
 {
     $this->key = 'wp-media';
     $this->label = __('Media Library');
     $this->singular_label = __('Media');
     $this->type = 'media';
     $this->meta_type = 'post';
     $this->page = 'upload';
     $this->post_type = 'attachment';
     parent::__construct();
 }
Example #7
0
 function __construct()
 {
     $this->key = 'wp-links';
     $this->label = __('Links');
     $this->singular_label = __('Link');
     $this->type = 'link';
     $this->page = 'link-manager';
     $this->menu_type = 'other';
     add_filter("manage_{$this->page}_columns", array($this, 'add_headings'), 100);
     add_action('manage_link_custom_column', array($this, 'manage_value'), 100, 2);
     parent::__construct();
 }
Example #8
0
 /**
  * @since 2.0
  */
 public function __construct($post_type)
 {
     $this->key = $post_type;
     $this->post_type = $post_type;
     $this->type = 'post';
     $this->meta_type = 'post';
     $this->page = 'edit';
     $this->screen = $this->page . '-' . $this->post_type;
     $this->menu_type = __('Post Type', 'codepress-admin-columns');
     $this->set_labels();
     parent::__construct();
 }
Example #9
0
 /**
  * @since 2.0
  */
 public function __construct($post_type)
 {
     $this->set_post_type($post_type);
     $this->key = $this->post_type;
     $this->label = $this->post_type_object->labels->name;
     $this->singular_label = $this->post_type_object->labels->singular_name;
     $this->type = 'post';
     $this->meta_type = 'post';
     $this->page = 'edit';
     $this->menu_type = 'post';
     parent::__construct();
 }
Example #10
0
 /**
  * @since 2.0
  */
 public function __construct()
 {
     $this->key = 'wp-users';
     $this->label = __('Users');
     $this->singular_label = __('User');
     $this->type = 'user';
     $this->meta_type = 'user';
     $this->page = 'users';
     $this->menu_type = 'other';
     add_filter("manage_{$this->page}_columns", array($this, 'add_headings'), 100);
     add_filter('manage_users_custom_column', array($this, 'manage_value_callback'), 100, 3);
     parent::__construct();
 }
Example #11
0
 /**
  * Constructor
  *
  * @since 2.0
  */
 function __construct()
 {
     $this->key = 'wp-comments';
     $this->label = __('Comments');
     $this->type = 'comment';
     $this->meta_type = 'comment';
     $this->page = 'edit-comments';
     $this->menu_type = 'other';
     // headings
     add_filter("manage_{$this->page}_columns", array($this, 'add_headings'), 100);
     // values
     add_action('manage_comments_custom_column', array($this, 'manage_value'), 100, 2);
     parent::__construct();
 }
Example #12
0
 /**
  * Constructor
  *
  * @since 2.0
  */
 function __construct()
 {
     $this->key = 'wp-ms_users';
     $this->label = __('Network Users');
     $this->type = 'user';
     $this->meta_type = 'user';
     $this->page = 'users';
     $this->menu_type = 'other';
     // headings
     add_filter("wpmu_users_columns", array($this, 'add_headings'), 100);
     // values
     add_filter('manage_users_custom_column', array($this, 'manage_value_callback'), 100, 3);
     parent::__construct();
 }
Example #13
0
 public function __construct()
 {
     $this->key = 'wp-comments';
     $this->label = __('Comments');
     $this->singular_label = __('Comment');
     $this->type = 'comment';
     $this->meta_type = 'comment';
     $this->page = 'edit-comments';
     $this->menu_type = 'other';
     // Filter is located in get_column_headers().
     add_filter("manage_{$this->page}_columns", array($this, 'add_headings'), 100);
     add_action('manage_comments_custom_column', array($this, 'manage_value'), 100, 2);
     parent::__construct();
 }
Example #14
0
 public function __construct()
 {
     $this->key = 'wp-media';
     $this->label = __('Media Library');
     $this->singular_label = __('Media');
     $this->type = 'media';
     $this->meta_type = 'post';
     $this->page = 'upload';
     $this->post_type = 'attachment';
     $this->menu_type = 'other';
     // Increased the priority to overrule 3th party plugins such as Media Tags
     add_filter("manage_{$this->page}_columns", array($this, 'add_headings'), 100);
     add_action('manage_media_custom_column', array($this, 'manage_value'), 100, 2);
     parent::__construct();
 }
 /**
  * Initializes some properties, installs filters and then
  * calls the parent constructor to set some default configs.
  *
  * @since 2.22
  */
 public function __construct()
 {
     $this->key = 'mla-media-assistant';
     $this->label = __('Media Library Assistant');
     $this->singular_label = __('Assistant');
     $this->type = 'media';
     $this->meta_type = 'post';
     $this->page = 'upload';
     $this->subpage = MLACore::ADMIN_PAGE_SLUG;
     $this->post_type = 'attachment';
     $this->menu_type = 'other';
     // Increased the priority to overrule 3th party plugins such as Media Tags
     add_filter('manage_media_page_' . MLACore::ADMIN_PAGE_SLUG . '_columns', array($this, 'add_headings'), 100);
     add_filter('mla_list_table_column_default', array($this, 'manage_value'), 100, 3);
     parent::__construct();
 }
 /**
  * Constructor
  *
  * @since 1.2.0
  */
 function __construct($taxonomy)
 {
     $this->set_taxonomy_object($taxonomy);
     $this->key = 'wp-taxonomy_' . $taxonomy;
     $this->type = 'taxonomy';
     $this->page = 'edit-tags';
     $this->taxonomy = $taxonomy;
     $this->label = $this->taxonomy_object->labels->name;
     $this->singular_label = $this->taxonomy_object->labels->singular_name;
     $this->menu_type = $this->type;
     // headings
     add_filter("manage_edit-{$this->taxonomy}_columns", array($this, 'add_headings'));
     // values
     add_action("manage_{$this->taxonomy}_custom_column", array($this, 'manage_value'), 10, 3);
     parent::__construct();
 }