Skip to content

activitypub_site_supports_blocks

github-actions[bot] edited this page Jul 23, 2025 · 1 revision

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

Auto-generated Example

add_filter(
    'activitypub_site_supports_blocks',
    function ( 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 )

Hooks

Users

Developers

Clone this wiki locally