Skip to content

activitypub_site_supports_blocks

github-actions[bot] edited this page Jul 29, 2025 · 12 revisions

Allow plugins to disable block editor support, thus disabling blocks registered by the ActivityPub plugin.

Auto-generated Example

add_filter(
   'activitypub_site_supports_blocks',
    'my_activitypub_site_supports_blocks_callback'
);

function my_activitypub_site_supports_blocks_callback( Activitypub\boolean $supports_blocks ) {
    // Your code here.
    return $supports_blocks;
}

Parameters

  • Activitypub\boolean $supports_blocks True if the site supports the block editor, false otherwise.

Files

apply_filters( 'activitypub_site_supports_blocks', true )

← All Hooks

Users

Developers

Clone this wiki locally