bbp_get_page_by_path

  • apply_filters( 'bbp_get_page_by_path', $retval, $path )

    Source Reference:

    • Component: bbPress :: bbp-core
      File: /bbp-includes/bbp-core-compatibility.php :: Trac Source Line: 1369
      	// Path is not empty
      	if ( !empty( $path ) ) {
      
      		// Pretty permalinks are on so path might exist
      		if ( get_option( 'permalink_structure' ) ) {
      			$retval = get_page_by_path( $path );
      		}
      	}
      
      	return apply_filters( 'bbp_get_page_by_path', $retval, $path );
      }
      
      /** Filters *******************************************************************/
      
      /**
       * Removes all filters from a WordPress filter, and stashes them in the $bbp
       * global in the event they need to be restored later.
       *
       * @since bbPress (r3251)
       *
      

Comments are closed.