wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.
block_core_page_list_nest_pages › WordPress Function
Odn/a
Przestarzałyn/a
› block_core_page_list_nest_pages ( $current_level, $children )
Parametry: (2) |
|
Powrót: |
|
Zdefiniowane na: |
|
Codex: |
Outputs nested array of pages
Źródło
function block_core_page_list_nest_pages( $current_level, $children ) { if ( empty( $current_level ) ) { return; } foreach ( (array) $current_level as $key => $current ) { if ( isset( $children[ $key ] ) ) { $current_level[ $key ]['children'] = block_core_page_list_nest_pages( $children[ $key ], $children ); } } return $current_level; }