is_multi_author
Filter HookDescription
Filters whether the site has more than one author with published posts.Hook Information
File Location |
wp-includes/author-template.php
View on GitHub
|
Hook Type | Filter |
Line Number | 619 |
Hook Parameters
Type | Name | Description |
---|---|---|
bool
|
$is_multi_author
|
Whether $is_multi_author should evaluate as true. |
Usage Examples
Basic Usage
<?php
// Hook into is_multi_author
add_filter('is_multi_author', 'my_custom_filter', 10, 1);
function my_custom_filter($is_multi_author) {
// Your custom filtering logic here
return $is_multi_author;
}
Source Code Context
wp-includes/author-template.php:619
- How this hook is used in WordPress core
<?php
614 *
615 * @since 3.2.0
616 *
617 * @param bool $is_multi_author Whether $is_multi_author should evaluate as true.
618 */
619 return apply_filters( 'is_multi_author', (bool) $is_multi_author );
620 }
621
622 /**
623 * Helper function to clear the cache for number of authors.
624 *
PHP Documentation
<?php
/**
* Filters whether the site has more than one author with published posts.
*
* @since 3.2.0
*
* @param bool $is_multi_author Whether $is_multi_author should evaluate as true.
*/
Quick Info
- Hook Type: Filter
- Parameters: 1
- File: wp-includes/author-template.php
Related Hooks
Related hooks will be displayed here in future updates.