public static function admin_init() { self::support_thumbnails(); self::$settings_link = '<a href="' . get_admin_url() . 'edit.php?post_type=' . self::PT . '&page=' . Testimonials_Widget_Settings::ID . '">' . esc_html__('Settings', 'testimonials-widget') . '</a>'; self::add_meta_box_testimonials_widget(); self::update(); add_action('manage_' . self::PT . '_posts_custom_column', array(__CLASS__, 'manage_posts_custom_column'), 10, 2); add_action('right_now_content_table_end', array(__CLASS__, 'right_now_content_table_end')); add_filter('manage_' . self::PT . '_posts_columns', array(__CLASS__, 'manage_posts_columns')); add_filter('plugin_action_links', array(__CLASS__, 'plugin_action_links'), 10, 2); add_filter('plugin_row_meta', array(__CLASS__, 'plugin_row_meta'), 10, 2); add_filter('post_updated_messages', array(__CLASS__, 'post_updated_messages')); add_filter('pre_get_posts', array(__CLASS__, 'pre_get_posts_author')); if (self::do_load()) { add_filter('manage_' . self::PT . '-category_custom_column', array(__CLASS__, 'category_column'), 10, 3); add_filter('manage_' . self::PT . '-post_tag_custom_column', array(__CLASS__, 'post_tag_column'), 10, 3); add_filter('manage_category_custom_column', array(__CLASS__, 'category_column'), 10, 3); add_filter('manage_edit-' . self::PT . '-category_columns', array(__CLASS__, 'category_columns')); add_filter('manage_edit-' . self::PT . '-post_tag_columns', array(__CLASS__, 'category_columns')); add_filter('manage_edit-category_columns', array(__CLASS__, 'category_columns')); add_filter('manage_edit-post_tag_columns', array(__CLASS__, 'category_columns')); add_filter('manage_post_tag_custom_column', array(__CLASS__, 'post_tag_column'), 10, 3); } }