wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



block_core_navigation_get_post_ids › WordPress Function

Odn/a
Przestarzałyn/a
block_core_navigation_get_post_ids ( $inner_blocks )
Parametry:
  • (WP_Block_List) $inner_blocks Block list class instance.
    Wymagane: Tak
Powrót:
  • (array) Array of post IDs.
Zdefiniowane na:
Codex:

Iterate through all inner blocks recursively and get navigation link block's post IDs.



Źródło

function block_core_navigation_get_post_ids( $inner_blocks ) {
	$post_ids = array_map( 'block_core_navigation_from_block_get_post_ids', iterator_to_array( $inner_blocks ) );
	return array_unique( array_merge( ...$post_ids ) );
}