bbp_publicize_forum

  • do_action( 'bbp_publicize_forum',  $forum_id )

    Source Reference:

    • Component: bbPress:: bbp-forum
      File: /bbp-includes/bbp-forum-functions.php :: Trac Source Line: 207
       *
       * @param int $forum_id Optional. Forum id
       * @uses update_post_meta() To update the forum private meta
       * @return bool False on failure, true on success
       */
      function bbp_publicize_forum( $forum_id = 0, $current_visibility = '' ) {
      
      	$forum_id = bbp_get_forum_id( $forum_id );
      
      	do_action( 'bbp_publicize_forum',  $forum_id );
      
      	// Only run queries if visibility is changing
      	if ( bbp_get_public_status_id() != $current_visibility ) {
      
      		// Remove from _bbp_private_forums site option
      		if ( bbp_get_private_status_id() == $current_visibility ) {
      
      			// Get private forums
      			$private = bbp_get_private_forum_ids();
      

Comments are closed.