is_multi_author
Filters whether the site has more than one author with published posts.
Usage
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.
Changelog
Since 3.2.0 | Introduced. |
Where the hook is called
is_multi_author
wp-includes/author-template.php 619
return apply_filters( 'is_multi_author', (bool) $is_multi_author );