/**
  * Constructor
  */
 public function __construct()
 {
     $this->type = 'sp_outcome';
     // Admin Columns
     add_filter('manage_edit-sp_outcome_columns', array($this, 'edit_columns'));
     add_action('manage_sp_outcome_posts_custom_column', array($this, 'custom_columns'), 2, 2);
     // Call SP_Admin_CPT constructor
     parent::__construct();
 }
 /**
  * Constructor
  */
 public function __construct()
 {
     $this->type = 'sp_calendar';
     // Admin Columns
     add_filter('manage_edit-sp_calendar_columns', array($this, 'edit_columns'));
     add_action('manage_sp_calendar_posts_custom_column', array($this, 'custom_columns'), 2, 2);
     // Filtering
     add_action('restrict_manage_posts', array($this, 'filters'));
     add_filter('parse_query', array($this, 'filters_query'));
     // Call SP_Admin_CPT constructor
     parent::__construct();
 }
Ejemplo n.º 3
0
 /**
  * Constructor
  */
 public function __construct()
 {
     $this->type = 'sp_team';
     // Post title fields
     add_filter('enter_title_here', array($this, 'enter_title_here'), 1, 2);
     // Admin Columns
     add_filter('manage_edit-sp_team_columns', array($this, 'edit_columns'));
     add_action('manage_sp_team_posts_custom_column', array($this, 'custom_columns'), 2, 2);
     // Filtering
     add_action('restrict_manage_posts', array($this, 'filters'));
     // Call SP_Admin_CPT constructor
     parent::__construct();
 }
 /**
  * Constructor
  */
 public function __construct()
 {
     $this->type = 'sp_sponsor';
     // Post title fields
     add_filter('enter_title_here', array($this, 'enter_title_here'), 1, 2);
     // Admin Columns
     add_filter('manage_edit-sp_sponsor_columns', array($this, 'edit_columns'));
     add_action('manage_sp_sponsor_posts_custom_column', array($this, 'custom_columns'), 2, 2);
     add_filter('manage_edit-sp_sponsor_sortable_columns', array($this, 'custom_columns_sort'));
     // Highlight menu
     add_action('admin_head', array($this, 'menu_highlight'));
     // Call SP_Admin_CPT constructor
     parent::__construct();
 }
 /**
  * Constructor
  */
 public function __construct()
 {
     $this->type = 'sp_directory';
     // Admin Columns
     add_filter('manage_edit-sp_directory_columns', array($this, 'edit_columns'));
     add_action('manage_sp_directory_posts_custom_column', array($this, 'custom_columns'), 2, 2);
     // Filtering
     add_action('restrict_manage_posts', array($this, 'filters'));
     add_filter('parse_query', array($this, 'filters_query'));
     // Highlight menu
     add_action('admin_head', array($this, 'menu_highlight'));
     // Call SP_Admin_CPT constructor
     parent::__construct();
 }
 /**
  * Constructor
  */
 public function __construct()
 {
     $this->type = 'sp_event';
     // Post title fields
     add_filter('enter_title_here', array($this, 'enter_title_here'), 1, 2);
     // Before data updates
     add_filter('wp_insert_post_data', array($this, 'wp_insert_post_data'), 99, 2);
     // Admin Columns
     add_filter('manage_edit-sp_event_columns', array($this, 'edit_columns'));
     add_action('manage_sp_event_posts_custom_column', array($this, 'custom_columns'), 2, 2);
     // Filtering
     add_action('restrict_manage_posts', array($this, 'filters'));
     add_filter('parse_query', array($this, 'filters_query'));
     // Call SP_Admin_CPT constructor
     parent::__construct();
 }