/**
  * @codeCoverageIgnore
  */
 public function init()
 {
     if (defined('WP_DEBUG') && true == WP_DEBUG && is_admin() && (!defined('DOING_AJAX') || false == DOING_AJAX)) {
         add_filter('action_scheduler_post_type_args', array(self::instance(), 'action_scheduler_post_type_args'));
     }
     self::$admin_url = admin_url('edit.php?post_type=' . ActionScheduler_wpPostStore::POST_TYPE);
     add_filter('views_edit-' . ActionScheduler_wpPostStore::POST_TYPE, array(self::instance(), 'list_table_views'));
     add_filter('bulk_actions-edit-' . ActionScheduler_wpPostStore::POST_TYPE, array(self::instance(), 'bulk_actions'));
     add_filter('manage_' . ActionScheduler_wpPostStore::POST_TYPE . '_posts_columns', array(self::instance(), 'list_table_columns'), 1);
     add_filter('manage_edit-' . ActionScheduler_wpPostStore::POST_TYPE . '_sortable_columns', array(self::instance(), 'list_table_sortable_columns'));
     add_filter('manage_' . ActionScheduler_wpPostStore::POST_TYPE . '_posts_custom_column', array(self::instance(), 'list_table_column_content'), 10, 2);
     add_filter('post_row_actions', array(self::instance(), 'row_actions'), 10, 2);
     add_action('admin_init', array(self::instance(), 'maybe_execute_action'), 20);
     add_action('admin_notices', array(self::instance(), 'admin_notices'));
     add_filter('post_updated_messages', array(self::instance(), 'post_updated_messages'));
     add_filter('posts_orderby', array(self::instance(), 'custom_orderby'), 10, 2);
     add_filter('posts_search', array(self::instance(), 'search_post_password'), 10, 2);
 }
Ejemplo n.º 2
0
 public static function admin_view()
 {
     return ActionScheduler_AdminView::instance();
 }