• Resolved thezedt

    (@thezedt)


    In case anyone is interested adding support to freeze bbPress (if installed) as well, here’s the change needed:

    In file code-freeze/code-freeze.php, find
    the cf_close_comments() function and in it, after
    add_filter( 'pings_open', 'cf_close_the_comments', 10, 2 );
    add

    add_filter( 'bbp_current_user_can_access_create_reply_form', cf_close_bbp_comments ); // MOD: also disable bbpress topic replies
    add_filter( 'bbp_current_user_can_access_create_topic_form', cf_close_bbp_comments ); // MOD: also disable bbpress new topic
    function cf_close_bbp_comments(){ return FALSE; }

    https://www.ads-software.com/plugins/code-freeze/

Viewing 1 replies (of 1 total)
  • Plugin Author k3davis

    (@k3davis)

    Thanks, I added an adaptation of this code to the current version (credits in the changelog).

Viewing 1 replies (of 1 total)
  • The topic ‘Making Code Freeze handle bbPress plugin’ is closed to new replies.