• Resolved Denzel Chia

    (@denzel_chia)


    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

Viewing 1 replies (of 1 total)
  • 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 )

Viewing 1 replies (of 1 total)
  • The topic ‘How to add_filter to the_posts in WordPress 3.0 Alpha?’ is closed to new replies.