Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




_page_traverse_name [ WordPress Function ]

_page_traverse_name ( $page_id, $children, $result )
Defined at:



function to traverse and return all the nested children post names of a root page.

$children contains parent-children relations

Source


<?php
function _page_traverse_name$page_id, &$children, &$result ){
    if ( isset( 
$children$page_id ] ) ){
        foreach( (array)
$children$page_id ] as $child ) {
            
$result$child->ID ] = $child->post_name;
            
_page_traverse_name$child->ID$children$result );
        }
    }
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics