Skip to:
Content
Pages
Categories
Search
Top
Bottom

add_action( $bb_hook, array( $this, "callback_func" ) ) – Doesn't.


  • charliedrake
    Member

    @charliedrake

    class foomanchu {

    function __construct() {

    add_action( ‘bb_hook’, array( $this, ‘callback_function’ ) );

    }

    function callback_function() {

    $result = ‘foomanchu’;

    return $result;

    }

    }

    The bbPress Docs state that bbPress uses the exact same Plugin API as WordPress, yet the above would work in WordPress, but silently fail in bbPress.

    any light in this would be much appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.