Making Code Freeze handle bbPress plugin
-
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 );
addadd_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; }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Making Code Freeze handle bbPress plugin’ is closed to new replies.