wp_get_first_block


wp_get_first_block ( $blocks, $block_name )

Parameters:
  • (array) blocks Array of blocks.
  • (string) block_name Name of the block to find.
Returns:
  • (array) Found block, or empty array if none found.
Defined at:

Description

Finds the first occurrence of a specific block in an array of blocks.

Related Functions

wp_set_post_lock, _get_list_table, wp_check_post_lock, wp_get_post_cats, wp_list_pluck

Top Google Results

User discussions

wpseek mobile