Skip to content

activitypub_site_supports_blocks

github-actions[bot] edited this page Aug 7, 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',
    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 )

← All Hooks

Users

Developers

Clone this wiki locally