archivespress-dates-cache-object
Developer Knowledge Level
This content is intended for WordPress developers, and it may require coding knowledge of WordPress, PHP, and JavaScript. Code examples provided here may contain errors or needs some additional coding. Make sure to test the code before using it on a live website!
Definition
apply_filters( "archivespress-dates-cache-object", $object );
Arguments
Name
Type
Description
$object
null|iCache
Initially null. Provide an object implementing Dev4Press\Plugin\ArchivesPress\Base\iCache, or leave null to use the built-in implementation.
Returns
Return null for the built-in implementation or an object implementing iCache.
Filters the dates cache implementation each time it is requested. The replacement must satisfy the declared interface. Returning a falsey value selects the built-in implementation.