Skip to:
Content
Pages
Categories
Search
Top
Bottom

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

  • @charliedrake

    Member

    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)
  • @jaredatch

    Member

    What version of bbPress are you using?

    @charliedrake

    Member

    ah, woops – i’m running 1.1(legacy), so standalone not wp-plugin.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar