[ Index ] |
PHP Cross Reference of BackPress |
[Summary view] [Print] [Text view]
1 <?php 2 // Last sync [WP11537] 3 4 /** 5 * Taxonomy API 6 * 7 * @package WordPress 8 * @subpackage Taxonomy 9 * @since 2.3.0 10 */ 11 12 function get_object_taxonomies($object_type) { 13 global $wp_taxonomy_object; 14 return $wp_taxonomy_object->get_object_taxonomies($object_type); 15 } 16 17 function get_taxonomy( $taxonomy ) { 18 global $wp_taxonomy_object; 19 return $wp_taxonomy_object->get_taxonomy( $taxonomy ); 20 } 21 22 function is_taxonomy( $taxonomy ) { 23 global $wp_taxonomy_object; 24 return $wp_taxonomy_object->is_taxonomy( $taxonomy ); 25 } 26 27 function is_taxonomy_hierarchical($taxonomy) { 28 global $wp_taxonomy_object; 29 return $wp_taxonomy_object->is_taxonomy_hierarchical($taxonomy); 30 } 31 32 function register_taxonomy( $taxonomy, $object_type, $args = array() ) { 33 global $wp_taxonomy_object; 34 return $wp_taxonomy_object->register_taxonomy( $taxonomy, $object_type, $args ); 35 } 36 37 function get_objects_in_term( $terms, $taxonomies, $args = array() ) { 38 global $wp_taxonomy_object; 39 return $wp_taxonomy_object->get_objects_in_term( $terms, $taxonomies, $args ); 40 } 41 42 function &get_term($term, $taxonomy, $output = OBJECT, $filter = 'raw') { 43 global $wp_taxonomy_object; 44 return $wp_taxonomy_object->get_term($term, $taxonomy, $output, $filter); 45 } 46 47 function get_term_by($field, $value, $taxonomy, $output = OBJECT, $filter = 'raw') { 48 global $wp_taxonomy_object; 49 return $wp_taxonomy_object->get_term_by($field, $value, $taxonomy, $output, $filter); 50 } 51 52 function get_term_children( $term, $taxonomy ) { 53 global $wp_taxonomy_object; 54 return $wp_taxonomy_object->get_term_children( $term, $taxonomy ); 55 } 56 57 function get_term_field( $field, $term, $taxonomy, $context = 'display' ) { 58 global $wp_taxonomy_object; 59 return $wp_taxonomy_object->get_term_field( $field, $term, $taxonomy, $context ); 60 } 61 62 function get_term_to_edit( $id, $taxonomy ) { 63 global $wp_taxonomy_object; 64 return $wp_taxonomy_object->get_term_to_edit( $id, $taxonomy ); 65 } 66 67 function &get_terms($taxonomies, $args = '') { 68 global $wp_taxonomy_object; 69 return $wp_taxonomy_object->get_terms($taxonomies, $args); 70 } 71 72 function is_term($term, $taxonomy = '') { 73 global $wp_taxonomy_object; 74 return $wp_taxonomy_object->is_term($term, $taxonomy ); 75 } 76 77 function sanitize_term($term, $taxonomy, $context = 'display') { 78 global $wp_taxonomy_object; 79 return $wp_taxonomy_object->sanitize_term($term, $taxonomy, $context ); 80 } 81 82 function sanitize_term_field($field, $value, $term_id, $taxonomy, $context) { 83 global $wp_taxonomy_object; 84 return $wp_taxonomy_object->sanitize_term_field($field, $value, $term_id, $taxonomy, $context); 85 } 86 87 function wp_count_terms( $taxonomy, $args = array() ) { 88 global $wp_taxonomy_object; 89 return $wp_taxonomy_object->count_terms( $taxonomy, $args ); 90 } 91 92 function wp_delete_object_term_relationships( $object_id, $taxonomies ) { 93 global $wp_taxonomy_object; 94 return $wp_taxonomy_object->delete_object_term_relationships( $object_id, $taxonomies ); 95 } 96 97 function wp_delete_term( $term, $taxonomy, $args = array() ) { 98 global $wp_taxonomy_object; 99 return $wp_taxonomy_object->delete_term( $term, $taxonomy, $args ); 100 } 101 102 function wp_get_object_terms($object_ids, $taxonomies, $args = array()) { 103 global $wp_taxonomy_object; 104 return $wp_taxonomy_object->get_object_terms($object_ids, $taxonomies, $args ); 105 } 106 107 function wp_insert_term( $term, $taxonomy, $args = array() ) { 108 global $wp_taxonomy_object; 109 return $wp_taxonomy_object->insert_term( $term, $taxonomy, $args ); 110 } 111 112 function wp_set_object_terms($object_id, $terms, $taxonomy, $append = false) { 113 global $wp_taxonomy_object; 114 return $wp_taxonomy_object->set_object_terms($object_id, $terms, $taxonomy, $append); 115 } 116 117 function wp_unique_term_slug($slug, $term) { 118 global $wp_taxonomy_object; 119 return $wp_taxonomy_object->unique_term_slug($slug, $term); 120 } 121 122 function wp_update_term( $term, $taxonomy, $args = array() ) { 123 global $wp_taxonomy_object; 124 return $wp_taxonomy_object->update_term( $term, $taxonomy, $args ); 125 } 126 127 function wp_defer_term_counting($defer=NULL) { 128 global $wp_taxonomy_object; 129 return $wp_taxonomy_object->defer_term_counting($defer); 130 } 131 132 function wp_update_term_count( $terms, $taxonomy, $do_deferred=false ) { 133 global $wp_taxonomy_object; 134 return $wp_taxonomy_object->update_term_count( $terms, $taxonomy, $do_deferred ); 135 } 136 137 function wp_update_term_count_now( $terms, $taxonomy ) { 138 global $wp_taxonomy_object; 139 return $wp_taxonomy_object->update_term_count_now( $terms, $taxonomy ); 140 } 141 142 function clean_object_term_cache($object_ids, $object_type) { 143 global $wp_taxonomy_object; 144 return $wp_taxonomy_object->clean_object_term_cache($object_ids, $object_type); 145 } 146 147 function clean_term_cache($ids, $taxonomy = '') { 148 global $wp_taxonomy_object; 149 return $wp_taxonomy_object->clean_term_cache($ids, $taxonomy); 150 } 151 152 function &get_object_term_cache($id, $taxonomy) { 153 global $wp_taxonomy_object; 154 return $wp_taxonomy_object->get_object_term_cache($id, $taxonomy); 155 } 156 157 function update_object_term_cache($object_ids, $object_type) { 158 global $wp_taxonomy_object; 159 return $wp_taxonomy_object->update_object_term_cache($object_ids, $object_type); 160 } 161 162 function update_term_cache($terms, $taxonomy = '') { 163 global $wp_taxonomy_object; 164 return $wp_taxonomy_object->update_term_cache($terms, $taxonomy); 165 } 166 167 function _get_term_hierarchy($taxonomy) { 168 global $wp_taxonomy_object; 169 return $wp_taxonomy_object->_get_term_hierarchy($taxonomy); 170 } 171 172 function &_get_term_children($term_id, $terms, $taxonomy) { 173 global $wp_taxonomy_object; 174 return $wp_taxonomy_object->_get_term_children($term_id, $terms, $taxonomy); 175 } 176 177 function _pad_term_counts(&$terms, $taxonomy) { 178 global $wp_taxonomy_object; 179 return $wp_taxonomy_object->_pad_term_counts($terms, $taxonomy); 180 } 181 182 function is_object_in_term($object_id, $taxonomy, $terms = null) { 183 global $wp_taxonomy_object; 184 return $wp_taxonomy_object->is_object_in_term($object_id, $taxonomy, $terms); 185 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Dec 26 01:01:01 2024 | Cross-referenced by PHPXref 0.7.1 |