Skip to content

activitypub_site_supports_blocks

github-actions[bot] edited this page Jul 30, 2025 · 3 revisions

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

Auto-generated Example

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

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