de

wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren




get_all_category_ids [ WordPress Function ]

get_all_category_ids ( Keine Parameter )
Links:
Gibt zurück:
  • (object) List of all of the category IDs.
Definiert in:



Retrieves all category IDs.

Source


<?php
function get_all_category_ids() {
    if ( ! 
$cat_ids wp_cache_get'all_category_ids''category' ) ) {
        
$cat_ids get_terms'category', array('fields' => 'ids''get' => 'all') );
        
wp_cache_add'all_category_ids'$cat_ids'category' );
    }

    return 
$cat_ids;
}
?>

Beispiele [ wp-snippets.com ]

Top Google Suchergebnisse

Mehr ...

0 Nutzerkommentare

Noch keine. Sei der Erste!

Neu hinzufügen ...



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