-
Notifications
You must be signed in to change notification settings - Fork 82
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.
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;
}
-
Activitypub\boolean
$supports_blocks
True if the site supports the block editor, false otherwise.
apply_filters( 'activitypub_site_supports_blocks', true )
Follow @[email protected] for updates and news.