wp_find_hierarchy_loop Wordpress function


Description:

Finds hierarchy loops using a callback function that maps object IDs to parent IDs.


Syntax:


Arguments:

(callback) $callback function that accepts ( ID, $callback_args ) and outputs parent_ID
(int) $start The ID to start the loop check at
(int) $start_parent the parent_ID of $start to use instead of calling $callback( $start ). Use null to always use $callback
(array) $callback_args optional additional arguments to send to $callback


Return Type:

(array) IDs of all members of loop


Define At:

wp-includes/functions.php


Wordpress Reference URL:

http://codex.wordpress.org/Function_Reference/wp_find_hierarchy_loop


0 Flares Facebook 0 Google+ 0 0 Flares ×
Posted in: Wordpress functions
0 Flares Facebook 0 Pin It Share 0 Google+ 0 0 Flares ×