Skip to:
Content
Pages
Categories
Search
Top
Bottom

BP1.2 – locate_template() apply filter from 'true' to 'false'

  • @mkels

    Participant

    hi

    using bp-default as parent theme..without touching the parent code

    how do i apply filter to make locate_template(array(‘sidebar.php’), true) to false?

    not sure if it possible:)

    what i have on mind was using function in child theme like

    function locate_to_false() {

    if(bp_is_directory()) {

    $this_filter = apply_filter( <!--this is where some code go if have-->;

    return $this_filter;

    }

    }

    add_filter('get_header', 'locate_to_false',1);

    // this will change the locate in directory to false..maybe

    thx

  • The topic ‘BP1.2 – locate_template() apply filter from 'true' to 'false'’ is closed to new replies.
Skip to toolbar