Skip to content

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_enabled instead.

Filters whether sideloading is enabled.

This filter was introduced in 7.9.1 and replaced by

Auto-generated Example

/**
 * 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 );

Parameters

  • bool $enabled Whether sideloading is enabled. Default true.
  • string $8_0_0
  • string $activitypub_remote_cache_enabled

Files

\apply_filters_deprecated( 'activitypub_sideloading_enabled', array( true ), '8.0.0', 'activitypub_remote_cache_enabled' )

← All Hooks

Users

Developers

Clone this wiki locally