is_multi_author
Filters whether the site has more than one author with published posts.
Использование
add_filter( 'is_multi_author', 'wp_kama_is_multi_author_filter' ); /** * Function for `is_multi_author` filter-hook. * * @param bool $is_multi_author Whether $is_multi_author should evaluate as true. * * @return bool */ function wp_kama_is_multi_author_filter( $is_multi_author ){ // filter... return $is_multi_author; }
- $is_multi_author(true|false)
- Whether $is_multi_author should evaluate as true.
Список изменений
С версии 3.2.0 | Введена. |
Где вызывается хук
is_multi_author
wp-includes/author-template.php 619
return apply_filters( 'is_multi_author', (bool) $is_multi_author );