function __construct() { add_action('wp_ajax_o2_tag_search', array($this, 'tag_search')); add_action('transition_post_status', array($this, 'process_tags'), 12, 3); add_filter('the_content', array('o2_Tags', 'append_old_tags'), 14); add_filter('the_content', array('o2_Tags', 'tag_links'), 15); add_filter('comment_text', array('o2_Tags', 'tag_links'), 15); add_filter('o2_post_fragment', array($this, 'append_old_tags_to_fragment'), 10, 1); parent::__construct('post_tag'); }
function __construct() { add_action('init', array($this, 'register_taxonomy'), 0); add_action('init', array($this, 'get_data')); add_action('template_redirect', array($this, 'redirect_permalink'), 1); add_action('wp_footer', array($this, 'inline_js')); add_filter('the_content', array($this, 'xpost_link_post'), 5); add_filter('comment_text', array($this, 'xpost_link_comment'), 5); add_action('transition_post_status', array($this, 'process_xpost'), 12, 3); add_action('wp_insert_comment', array($this, 'process_xcomment'), 12, 2); add_action('transition_comment_status', array($this, 'process_xcomment_transition'), 12, 3); add_filter('o2_found_xposts', array($this, 'filter_xposts'), 5); // Don't let xposts mess up single-page navigation add_filter('get_previous_post_where', array($this, 'get_adjacent_post_where')); add_filter('get_next_post_where', array($this, 'get_adjacent_post_where')); // Filter xcomment permalinks to point immediately at the originating comment add_filter('o2_comment_permalink', array($this, 'filter_xcomment_permalink'), 10, 2); // Don't let xposts participate in resolved/unresolved add_filter('o2_resolved_posts_maybe_mark_new_as_unresolved', array($this, 'o2rpx_dont_mark_xposts'), 10, 2); parent::__construct('xposts'); }