Skip to content

webmention_site_supports_blocks

github-actions[bot] edited this page Jan 3, 2026 · 1 revision

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

Auto-generated Example

/**
 * Allow plugins to disable block editor support,
 * thus disabling blocks registered by the Webmentions plugin.
 *
 * @param Webmention\boolean $supports_blocks 
 * @return Webmention\boolean The filtered value.
 */
function my_webmention_site_supports_blocks_callback( Webmention\boolean $supports_blocks ) {
    // Your code here.
    return $supports_blocks;
}
add_filter( 'webmention_site_supports_blocks', 'my_webmention_site_supports_blocks_callback' );

Parameters

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

Files

apply_filters( 'webmention_site_supports_blocks', $return )

← All Hooks

Clone this wiki locally