bp_core_get_directory_pages_stati
bp_core_get_directory_pages_stati
Appears in: buddypress.11.0.0
Hook Type: filter
Displaying hooks found in version: buddypress.11.0.0apply_filters('bp_core_get_directory_pages_stati') is found 1 times:
- /bp-core/bp-core-functions.php line 683679680681682683684685686687688689
* @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
] );
}