bp_core_get_directory_pages_stati

bp_core_get_directory_pages_stati

Hook Type: filter

See hook in core

Displaying hooks found in version: buddypress.12.3.0

apply_filters('bp_core_get_directory_pages_stati') is found 1 times:

  • /bp-core/bp-core-functions.php line 726
    	 * @since 11.0.0
    	 *
    	 * @param array $default_page_status The default allowed BP Directory pages stati.
    	 */
    	$page_stati = (array) apply_filters( 'bp_core_get_directory_pages_stati', $default_page_status );
    
    	// Validate the post stati, making sure each status is registered.
    	foreach ( $page_stati as $page_status_key => $page_status ) {
    		if ( ! get_post_status_object( $page_status ) ) {
    			unset( $page_stati[ $page_status_key ] );
    		}