wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.
wp_find_hierarchy_loop is private and should not be used in themes or plugins directly.
wp_find_hierarchy_loop › WordPress Function
Od3.1.0
Przestarzałyn/a
› wp_find_hierarchy_loop ( $callback, $start, $start_parent, $callback_args = array() )
| Dostęp: |
|
| Parametry: (4) |
|
| Powrót: |
|
| Zdefiniowane na: |
|
| Codex: |
Finds hierarchy loops using a callback function that maps object IDs to parent IDs.
Źródło
function wp_find_hierarchy_loop( $callback, $start, $start_parent, $callback_args = array() ) {
$override = is_null( $start_parent ) ? array() : array( $start => $start_parent );
$arbitrary_loop_member = wp_find_hierarchy_loop_tortoise_hare( $callback, $start, $override, $callback_args );
if ( ! $arbitrary_loop_member ) {
return array();
}
return wp_find_hierarchy_loop_tortoise_hare( $callback, $arbitrary_loop_member, $override, $callback_args, true );
}