# speechkit/7.0.0/src/editor/components/block-attributes/isBeyondwordsSupportedBlock.js

BeyondWords – AI audio for publishers, version 7.0.0. 46 lines.

- Page: https://pluginprobe.com/plugins/speechkit/7.0.0/code/src/editor/components/block-attributes/isBeyondwordsSupportedBlock.js
- Raw: https://pluginprobe.com/plugins/speechkit/7.0.0/raw/src/editor/components/block-attributes/isBeyondwordsSupportedBlock.js
- Modified: 2026-08-12T09:46:22+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/speechkit/7.0.0/code/src/editor/components/block-attributes/isBeyondwordsSupportedBlock.js#L10-L20`.

```javascript
/**
 * Check if a block is supported by BeyondWords.
 *
 * Only content blocks that can be read aloud get attributes and controls.
 *
 * @param {string} name Block name.
 * @return {boolean} Whether the block is supported by BeyondWords.
 */
export function isBeyondwordsSupportedBlock( name ) {
	if ( ! name ) {
		return false;
	}

	// Skip internal/UI blocks
	if ( name.startsWith( '__' ) ) {
		return false;
	}

	// Skip reusable blocks and template parts (these are containers)
	if (
		name.startsWith( 'core/block' ) ||
		name.startsWith( 'core/template' )
	) {
		return false;
	}

	const excludedBlocks = [
		'beyondwords/player', // The Player block embeds the player itself
		'core/freeform', // Classic editor
		'core/legacy-widget',
		'core/widget-area',
		'core/navigation',
		'core/navigation-link',
		'core/navigation-submenu',
		'core/site-logo',
		'core/site-title',
		'core/site-tagline',
	];

	if ( excludedBlocks.includes( name ) ) {
		return false;
	}

	return true;
}

```
