bbp_spill_the_beans

  • apply_filters( 'bbp_spill_the_beans', '__return_true' )

    Source Reference:

    • Component: bbPress :: bbp-core
      File: /bbp-includes/bbp-core-compatibility.php :: Trac Source Line: 1253
      			 * @see wp_reset_postdata() If you need to get $post back
      			 *
      			 * Note: If a theme uses custom code to output comments, it's
      			 *       possible all of this dancing around is for not.
      			 *
      			 * Note: If you need to keep these globals around for any special
      			 *       reason, we've provided a failsafe hook to bypass this you
      			 *       can put in your plugin or theme below ---v
      			 *
      			 *       apply_filters( 'bbp_spill_the_beans', '__return_true' );
      			 */
      			if ( !apply_filters( 'bbp_spill_the_beans', false ) ) {
      
      				// Setup the chopping block
      				global $post, $withcomments;
      
      				// Empty out globals that aren't being used in this loop anymore
      				$withcomments = $post = false;
      			}
      		}
      
  • apply_filters( 'bbp_spill_the_beans', false ) )

    Source Reference:

    • Component: bbPress :: bbp-core
      File: /bbp-includes/bbp-core-compatibility.php :: Trac Source Line: 1255
      			 * Note: If a theme uses custom code to output comments, it's
      			 *       possible all of this dancing around is for not.
      			 *
      			 * Note: If you need to keep these globals around for any special
      			 *       reason, we've provided a failsafe hook to bypass this you
      			 *       can put in your plugin or theme below ---v
      			 *
      			 *       apply_filters( 'bbp_spill_the_beans', '__return_true' );
      			 */
      			if ( !apply_filters( 'bbp_spill_the_beans', false ) ) {
      
      				// Setup the chopping block
      				global $post, $withcomments;
      
      				// Empty out globals that aren't being used in this loop anymore
      				$withcomments = $post = false;
      			}
      		}
      	}
      

Comments are closed.