WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How to add_filter to the_posts in WordPress 3.0 Alpha? (2 posts)

  1. denzel_chia
    Member
    Posted 4 years ago #

    Hi,

    May I know how to add_filter to the_posts in WordPress 3.0 Alpha?
    currently I am using add_filter('the_posts',array(&$this,'detectPost'));
    in a plugin.
    But it had stopped working due to the introduction of
    $this->posts = apply_filters_ref_array('the_posts', array( $this->posts, &$this ) );
    in query.php

    Please help.

    Thanks.

    Denzel

  2. Francis Crossen
    Member
    Posted 3 years ago #

    I'm using the_posts filter for a plugin and all is well with beta 2. Beta 1 was fine too.

    Check the source for the 'Tina MVC' plugin and look at:
    - tina_mvc.php: function tina_mvc_page_filter( $posts )

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.