acf_get_block_type()
Returns a block type for the given name.
No Hooks.
Returns
(Array|null).
Usage
acf_get_block_type( $name );
- $name(string) (required)
- The block type name.
Changelog
| Since 5.7.12 | Introduced. |
acf_get_block_type() acf get block type code ACF 6.8.8
function acf_get_block_type( $name ) {
return acf_get_store( 'block-types' )->get( $name );
}