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.14.3.4

apply_filters('bp_core_get_directory_pages_stati') is found 1 times:

  • /bp-core/bp-core-functions.php line 696
    692
    693
    694
    695
    696
    697
    698
    699
    700
    701
    702
    * @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 ] );
        }