WPINC_taxonomy.php Notes - WordPress-Thinstall/wordpress-develop GitHub Wiki

interface TaxonomyInterface {
    // Taxonomy Registration
    function create_initial_taxonomies();
    function get_taxonomies( $args = array(), $output = 'names', $operator = 'and' );
    function get_object_taxonomies( $object, $output = 'names' );
    function get_taxonomy( $taxonomy );
    function taxonomy_exists( $taxonomy );
    function is_taxonomy_hierarchical($taxonomy);
    function register_taxonomy( $taxonomy, $object_type, $args = array() );
    function unregister_taxonomy( $taxonomy );
    function get_taxonomy_labels( $tax );
    function register_taxonomy_for_object_type( $taxonomy, $object_type);
    function unregister_taxonomy_for_object_type( $taxonomy, $object_type );
    
    // Term
    function get_objects_in_term( $term_ids, $taxonomies, $args = array() );
    function get_tax_sql( $tax_query, $primary_table, $primary_id_column );
    function get_term( $term, $taxonomy = '', $output = OBJECT, $filter = 'raw' );
    function get_term_by( $field, $value, $taxonomy = '', $output = OBJECT, $filter = 'raw' );
    function get_term_children( $term_id, $taxonomy );
    function get_term_field( $field, $term, $taxonomy = '', $context = 'display' );
    function get_term_to_edit( $id, $taxonomy );
    function get_terms( $args = array(), $deprecated = '' );
    function add_term_meta( $term_id, $meta_key, $meta_value, $unique = false );
    function delete_term_meta( $term_id, $meta_key, $meta_value = '' );
    function get_term_meta( $term_id, $key = '', $single = false );
    function update_term_meta( $term_id, $meta_key, $meta_value, $prev_value = '' );
    function update_termmeta_cache( $term_ids );
    function term_exists( $term, $taxonomy = '', $parent = null );
    function term_is_ancestor_of( $term1, $term2, $taxonomy );
    function sanitize_term($term, $taxonomy, $context = 'display');
    function sanitize_term_field($field, $value, $term_id, $taxonomy, $context);
    function wp_count_terms( $taxonomy, $args = array() );
    function wp_delete_object_term_relationships( $object_id, $taxonomies );
    function wp_delete_term( $term, $taxonomy, $args = array() );
    function wp_delete_category( $cat_ID );
    function wp_get_object_terms($object_ids, $taxonomies, $args = array());
    function wp_insert_term( $term, $taxonomy, $args = array() );
    function wp_set_object_terms( $object_id, $terms, $taxonomy, $append = false );
    function wp_add_object_terms( $object_id, $terms, $taxonomy );
    function wp_remove_object_terms( $object_id, $terms, $taxonomy );
    function wp_unique_term_slug( $slug, $term );
    function wp_update_term( $term_id, $taxonomy, $args = array() );
    function wp_defer_term_counting($defer=null);
    function wp_update_term_count( $terms, $taxonomy, $do_deferred = false );
    function wp_update_term_count_now( $terms, $taxonomy );
    
    // Cache
    function clean_object_term_cache($object_ids, $object_type);
    function clean_term_cache($ids, $taxonomy = '', $clean_taxonomy = true);
    function get_object_term_cache( $id, $taxonomy );
    function update_object_term_cache($object_ids, $object_type);
    function update_term_cache( $terms, $taxonomy = '' );
    
    // Private / Util (Should be passed in as dependency!!!)
    function _get_term_hierarchy( $taxonomy );
    function _get_term_children( $term_id, $terms, $taxonomy, &$ancestors = array() );
    function _pad_term_counts( &$terms, $taxonomy );
    function _prime_term_caches( $term_ids, $update_meta_cache = true );
    
    // Callbacks
    function _update_post_term_count( $terms, $taxonomy );
    function _update_generic_term_count( $terms, $taxonomy );
    function _split_shared_term( $term_id, $term_taxonomy_id, $record = true );
    function _wp_batch_split_terms();
    function _wp_check_for_scheduled_split_terms();
    function _wp_check_split_default_terms( $term_id, $new_term_id, $term_taxonomy_id, $taxonomy );
    function _wp_check_split_terms_in_menus( $term_id, $new_term_id, $term_taxonomy_id, $taxonomy );
    function _wp_check_split_nav_menu_terms( $term_id, $new_term_id, $term_taxonomy_id, $taxonomy );
    function wp_get_split_terms( $old_term_id );
    function wp_get_split_term( $old_term_id, $taxonomy );
    function wp_term_is_shared( $term_id );
    function get_term_link( $term, $taxonomy = '' );
    function the_taxonomies( $args = array() );
    function get_the_taxonomies( $post = 0, $args = array() );
    function get_post_taxonomies( $post = 0 );
    function is_object_in_term( $object_id, $taxonomy, $terms = null );
    function is_object_in_taxonomy( $object_type, $taxonomy );
    function get_ancestors( $object_id = 0, $object_type = '', $resource_type = '' );
    function wp_get_term_taxonomy_parent_id( $term_id, $taxonomy );
    function wp_check_term_hierarchy_for_loops( $parent, $term_id, $taxonomy );
}