📁 File Manager Pro
v10.0.3 | PHP: 8.1.34
Server: Apache
2026-06-21 07:30:30
📂
/ (Root)
/
home
/
xeqi7597
/
cds.claireduwig.com
/
wp-content
/
plugins
/
generateblocks
/
src
/
components
/
tagname-control
📍 /home/xeqi7597/cds.claireduwig.com/wp-content/plugins/generateblocks/src/components/tagname-control
🔄 Refresh
✏️
Editing: TagNameControl.jsx
Writable
import { SelectControl } from '@wordpress/components'; import { __ } from '@wordpress/i18n'; import { getBlockType } from '@wordpress/blocks'; export function TagNameControl( { value, options = [], onChange, blockName } ) { const tagNames = getBlockType( blockName )?.attributes?.tagName?.enum ?? []; const tagNameOptions = options.length ? options : tagNames.map( ( tag ) => ( { label: tag, value: tag, } ) ); if ( ! tagNameOptions.length ) { return null; } return ( <SelectControl label={ __( 'Tag Name', 'generateblocks' ) } value={ value } options={ tagNameOptions } onChange={ onChange } /> ); }
💾 Save Changes
❌ Cancel