Skip to:
Content
Pages
Categories
Search
Top
Bottom

Load scripts when using shortcode

  • @zandercent

    Participant

    bbpress doesn’t load the the necessary scripts (reply.js etc) when embedding a topic as a shortcode. This is because of the conditional checks on line 158 of bbpress-functions.php

    if ( bbp_use_wp_editor() && is_bbpress() ) {

Viewing 1 replies (of 1 total)
  • @robin-w

    Moderator

    you could just enqueue it

    bbp_enqueue_script( bbpress-editor-always, 'js/editor.js', array( 'jquery' ), '2.6.4', true );

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