__clear_multi_author_cache()
Helper function to clear the cache for number of authors.
This is an internal function for using it by WP core itself. It's not recommended to use this function in your code.
No Hooks.
Return
null
. Nothing.
Usage
__clear_multi_author_cache() // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionDoubleUnderscore,PHPCompatibility.FunctionNameRestrictions.ReservedFunctionNames.FunctionDoubleUnderscore;
Changelog
Since 3.2.0 | Introduced. |
Code of __clear_multi_author_cache() clear multi author cache WP 6.0
function __clear_multi_author_cache() { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionDoubleUnderscore,PHPCompatibility.FunctionNameRestrictions.ReservedFunctionNames.FunctionDoubleUnderscore delete_transient( 'is_multi_author' ); }