-
Notifications
You must be signed in to change notification settings - Fork 83
activitypub_remote_cache_enabled
github-actions[bot] edited this page Feb 11, 2026
·
1 revision
Filters whether remote media caching is enabled.
/**
* Filters whether remote media caching is enabled.
*
* @param bool $enabled
* @return bool The filtered value.
*/
function my_activitypub_remote_cache_enabled_callback( bool $enabled ) {
// Your code here.
return $enabled;
}
add_filter( 'activitypub_remote_cache_enabled', 'my_activitypub_remote_cache_enabled_callback' );-
bool$enabledWhether caching is enabled. Default true.
\apply_filters( 'activitypub_remote_cache_enabled', true )Follow @activitypub.blog@activitypub.blog for updates and news.