Esempio n. 1
0
 protected function setup_hooks()
 {
     parent::setup_hooks();
     add_action('init', array($this, 'add_post_type_support'));
     add_action('init', array($this, 'add_category_support'));
     add_action('init', array($this, 'add_tag_support'));
     add_action('g1_archive_templates_register', array($this, 'register_archive_templates'));
     add_action('g1_single_templates_register', array($this, 'register_single_templates'));
     add_action('g1_collections_register', array($this, 'register_collections'));
     add_filter('g1_filterable_grid_filters', array($this, 'g1_filterable_grid_filters'));
     add_filter('manage_post_posts_columns', array($this, 'edit_columns'));
     add_action('manage_posts_custom_column', array($this, 'columns_display'));
 }
Esempio n. 2
0
 public function setup_hooks()
 {
     parent::setup_hooks();
     // Register custom post type and custom taxonomies
     add_action('init', array($this, 'register_post_type'));
     add_action('init', array($this, 'register_category'));
     add_action('init', array($this, 'register_tag'));
     add_action('g1_archive_templates_register', array($this, 'register_archive_templates'));
     add_action('g1_single_templates_register', array($this, 'register_single_templates'));
     add_action('g1_collections_register', array($this, 'register_collections'));
     add_filter('manage_g1_work_posts_columns', array($this, 'edit_columns'));
     add_action('manage_posts_custom_column', array($this, 'columns_display'));
     add_filter('g1_filterable_grid_filters', array($this, 'g1_filterable_grid_filters'));
 }