• Resolved ohfuchs

    (@ohfuchs)


    Hi,

    I like your plugin. Could you please consider adding a hook to bbpmd_after_editor that prints the help tab content? I know that I could replace the whole function, but it doesn’t feel right.

    thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Markus Echterhoff

    (@mechter)

    Hey, sorry it took me so long to reply. I forgot to subscribe to this support forum and just stumbled upon your post.

    If I understand correctly, you are looking for a way to replace the contents of the help tab that is a bit cleaner than unhooking bbpmd_after_editor and replacing it with custom code.

    How about a bbpmd_help_content filter to accompany the existing bbpmd_help_title – would that do the trick?

    Thread Starter ohfuchs

    (@ohfuchs)

    No worries ?? Yes that would do it just fine!

    Plugin Author Markus Echterhoff

    (@mechter)

    I’ve added the filter hook and released it as version 1.4 but since the filter provided an option to substitute your own help content rather than making changes to the default html (which might change without notice), the semantics felt off.

    I have since released version 1.5 which replaces the filter with an action hook. You can now provide your custom help content by unhooking the default action and substituting your own, e.g.

    remove_action( 'bbpmd_help_content', 'bbpmd_display_help_content' );
    add_action( 'bbpmd_help_content', function() { echo 'hi'; } );
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Make Examples easily replaceable’ is closed to new replies.