wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren
get_dynamic_block_names › WordPress Function
Seit5.0.0
Veraltetn/v
› get_dynamic_block_names ( Keine Parameter )
Gibt zurück: |
|
Definiert in: |
|
Codex: |
Returns an array of the names of all registered dynamic block types.
Ähnliche Funktionen: get_default_block_categories, get_block_templates, strip_core_block_namespace, get_allowed_block_types, get_id_from_blogname
Quellcode
function get_dynamic_block_names() { $dynamic_block_names = array(); $block_types = WP_Block_Type_Registry::get_instance()->get_all_registered(); foreach ( $block_types as $block_type ) { if ( $block_type->is_dynamic() ) { $dynamic_block_names[] = $block_type->name; } } return $dynamic_block_names; }