Пример #1
0
 public function __construct()
 {
     add_action('load-post.php', array($this, 'doifd_post_meta_boxes_setup'));
     add_action('load-post-new.php', array($this, 'doifd_post_meta_boxes_setup'));
     $plugin = DOIFD::get_instance();
     $this->plugin_slug = $plugin->get_plugin_slug();
 }
 public function __construct()
 {
     add_action('init', array($this, 'create_download_post_type'));
     add_action('init', array($this, 'register_download_taxonomy'));
     add_action('manage_doifd_download_posts_custom_column', array($this, 'download_custom_columns'));
     add_filter("manage_edit-doifd_download_columns", array($this, "download_edit_columns"));
     add_filter('post_updated_messages', array($this, 'doifd_post_updated_messages'));
     $plugin = DOIFD::get_instance();
     $this->plugin_slug = $plugin->get_plugin_slug();
 }