Filters the HTML output of a list of pages as a dropdown.
Filtre la sortie HTML d'une liste de pages sous forme de liste déroulante.
$args = ''
Sortie :
@param string $output HTML output for dropdown list of pages.
@param array $parsed_args The parsed arguments array. See wp_dropdown_pages()
@param WP_Post[] $pages Array of the page objects.
@param array|string $args {
@return void|string Void if 'echo' argument is true, HTML list of pages if 'echo' is false.
add_filter('wp_list_pages', 'add_page_descriptions');
function add_page_descriptions($pages) {
return str_replace('', ' - Description', $pages);
}
Chargement des actualités...