public static function init() { add_filter('the_content', array(__CLASS__, 'get_single')); $enable_archives = tw_get_option('enable_archives'); if ($enable_archives) { add_filter('pre_get_posts', array(__CLASS__, 'pre_get_posts_allow_testimonials')); } load_plugin_textdomain(self::PT, false, 'testimonials-widget/languages'); self::$cpt_category = self::PT . '-category'; self::$cpt_tags = self::PT . '-post_tag'; self::init_post_type(); self::styles(); add_action('generate_rewrite_rules', array(__CLASS__, 'generate_rewrite_rules')); }
public static function init() { add_filter('the_content', array(__CLASS__, 'get_single'), -1); load_plugin_textdomain(self::PT, false, 'testimonials-widget/languages'); self::$cpt_category = self::PT . '-category'; self::$cpt_tags = self::PT . '-post_tag'; self::init_post_type(); self::styles(); }