Switch language

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




get_tags [ WordPress Function ]

get_tags ( $args = '' )
Parameters:
  • (string|array) $args Tag arguments to use when retrieving tags.
Uses:
See:
Returns:
  • (array) List of tags.
Defined at:

Soorgelijke functies: get_tag, get_pages, get_the_tags, the_tags, get_page


Retrieves all post tags.

Source


<?php
function &get_tags$args '' ) {
    
$tags get_terms'post_tag'$args );

    if ( empty( 
$tags ) ) {
        
$return = array();
        return 
$return;
    }

    
$tags apply_filters'get_tags'$tags$args );
    return 
$tags;
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



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