-
Notifications
You must be signed in to change notification settings - Fork 85
activitypub_sideloading_enabled
github-actions[bot] edited this page Mar 5, 2026
·
4 revisions
DEPRECATED This hook was deprecated in version 8.0.0. Use
activitypub_remote_cache_enabledinstead.
Filters whether sideloading is enabled.
This filter was introduced in 7.9.1 and replaced by
/**
* Filters whether sideloading is enabled.
*
* This filter was introduced in 7.9.1 and replaced by.
*
* @param bool $enabled
* @param string $8_0_0
* @param string $activitypub_remote_cache_enabled
* @return bool The filtered value.
*/
function my_activitypub_sideloading_enabled_callback( bool $enabled, string $8_0_0, string $activitypub_remote_cache_enabled ) {
// Your code here.
return $enabled;
}
add_filter( 'activitypub_sideloading_enabled', 'my_activitypub_sideloading_enabled_callback', 10, 3 );-
bool$enabledWhether sideloading is enabled. Default true. -
string$8_0_0 -
string$activitypub_remote_cache_enabled
\apply_filters_deprecated( 'activitypub_sideloading_enabled', array( true ), '8.0.0', 'activitypub_remote_cache_enabled' )Follow @activitypub.blog@activitypub.blog for updates and news.