WordPress.org

Ready to get started?Download WordPress

Forums

Query Multiple Taxonomies
[resolved] remove_filter for title (3 posts)

  1. Unsal Korkmaz
    Member
    Posted 2 years ago #

    Hi,
    I tried
    remove_filter( 'wp_title', array( 'QMT_Template', 'wp_title' ));
    and

    global $QMT_Template;
    remove_filter( 'wp_title', array( 'QMT_Template', 'wp_title' ));

    etc.. but i couldnt remove it from external plugin. I dont want to edit core files so how can i remove it?

    http://wordpress.org/extend/plugins/query-multiple-taxonomies/

  2. Unsal Korkmaz
    Member
    Posted 2 years ago #

    uhm.. this one work:

    add_action("init", function(){
    	remove_filter( 'wp_title', array( 'QMT_Template', 'wp_title' ));
    });

    but is there any better solution? (proper way)

  3. scribu
    Member
    Plugin Author

    Posted 2 years ago #

    That is the proper way.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic