|
wp-admin/includes/meta-boxes.php:
register_and_do_post_meta_boxes()
|
Registers the default post meta boxes, and runs the do_meta_boxes actions.
|
|
wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php:
WP_REST_Posts_Controller::get_available_actions()
|
Get the link relations available for the post and current user.
|
|
wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php:
WP_REST_Posts_Controller::get_schema_links()
|
Retrieve Link Description Objects that should be added to the Schema for the posts collection.
|
|
wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php:
WP_REST_Posts_Controller::prepare_links()
|
Prepares links for the request.
|
|
wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php:
WP_REST_Posts_Controller::get_item_schema()
|
Retrieves the post’s schema, conforming to JSON Schema.
|
|
wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php:
WP_REST_Posts_Controller::get_collection_params()
|
Retrieves the query params for the posts collection.
|
|
wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php:
WP_REST_Posts_Controller::prepare_item_for_response()
|
Prepares a single post output for response.
|
|
wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php:
WP_REST_Posts_Controller::handle_terms()
|
Updates the post’s terms from a REST request.
|
|
wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php:
WP_REST_Posts_Controller::check_assign_terms_permission()
|
Checks whether current user can assign all terms sent with the current request.
|
|
wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php:
WP_REST_Posts_Controller::get_items()
|
Retrieves a collection of posts.
|
|
wp-includes/rest-api/endpoints/class-wp-rest-taxonomies-controller.php:
WP_REST_Taxonomies_Controller::get_items_permissions_check()
|
Checks whether a given request has permission to read taxonomies.
|
|
wp-includes/rest-api/endpoints/class-wp-rest-taxonomies-controller.php:
WP_REST_Taxonomies_Controller::get_items()
|
Retrieves all public taxonomies.
|
|
wp-includes/rest-api/endpoints/class-wp-rest-post-types-controller.php:
WP_REST_Post_Types_Controller::prepare_item_for_response()
|
Prepares a post type object for serialization.
|
|
wp-includes/class-wp-post-type.php:
WP_Post_Type::unregister_taxonomies()
|
Removes the post type from all taxonomies.
|
|
wp-includes/post.php:
wp_queue_posts_for_term_meta_lazyload()
|
Queues posts for lazy-loading of term meta.
|
|
wp-admin/includes/export.php:
wxr_post_taxonomy()
|
Output list of taxonomy terms, in XML tag format, associated with a post
|
|
wp-admin/includes/template.php:
get_inline_data()
|
Adds hidden fields with the data for use in the inline editor for posts and pages.
|
|
wp-admin/includes/post.php:
bulk_edit_posts()
|
Process the post data for the bulk editing of posts.
|
|
wp-admin/includes/class-wp-posts-list-table.php:
WP_Posts_List_Table::inline_edit()
|
Outputs the hidden row displayed when inline editing
|
|
wp-admin/includes/class-wp-posts-list-table.php:
WP_Posts_List_Table::get_columns()
|
|
|
wp-includes/class-wp-query.php:
WP_Query::get_posts()
|
Retrieves an array of posts based on query variables.
|
|
wp-includes/taxonomy.php:
update_object_term_cache()
|
Updates the cache for the given term object ID(s).
|
|
wp-includes/taxonomy.php:
get_the_taxonomies()
|
Retrieve all taxonomies associated with a post.
|
|
wp-includes/taxonomy.php:
get_post_taxonomies()
|
Retrieve all taxonomies of a post with just the names.
|
|
wp-includes/taxonomy.php:
is_object_in_taxonomy()
|
Determine if the given object type is associated with the given taxonomy.
|
|
wp-includes/taxonomy.php:
clean_object_term_cache()
|
Removes the taxonomy relationship to terms from the cache.
|
|
wp-includes/nav-menu-template.php:
_wp_menu_item_classes_by_context()
|
Add the class property classes for the current context, if applicable.
|
|
wp-includes/media.php:
get_attachment_taxonomies()
|
Retrieves taxonomies attached to given the attachment.
|
|
wp-includes/post.php:
_update_term_count_on_transition_post_status()
|
Update the custom taxonomies’ term counts when a post’s status is changed.
|
|
wp-includes/post.php:
wp_delete_attachment()
|
Trash or delete an attachment.
|
|
wp-includes/post.php:
wp_delete_post()
|
Trash or delete a post or page.
|
|
wp-includes/class-wp-xmlrpc-server.php:
wp_xmlrpc_server::_insert_post()
|
Helper method for wp_newPost() and wp_editPost(), containing shared logic.
|
|
wp-includes/class-wp-xmlrpc-server.php:
wp_xmlrpc_server::_prepare_post()
|
Prepares post data for return in an XML-RPC object.
|
|
wp-includes/class-wp-xmlrpc-server.php:
wp_xmlrpc_server::_prepare_post_type()
|
Prepares post data for return in an XML-RPC object.
|
Taxonomy objects for post type
If the
$outputparameter is'objects', taxonomy objects will be returned as described inget_taxonomies().will output
Array ( [category] => stdClass Object ( [hierarchical] => 1 [update_count_callback] => [rewrite] => [query_var] => category_name [public] => 1 [show_ui] => 1 [show_tagcloud] => 1 [_builtin] => 1 [labels] => stdClass Object ( ... ) ... [name] => category [label] => Categories ) [post_tag] => stdClass Object ( ... ) [post_format] => stdClass Object ( .... ) )Expand full source codeCollapse full source code
Taxonomy names for post type
will typically output:
Taxonomy names for post object
To get the taxonomies for the current post, the current post object can be passed instead of the post type.
<?php add_action('wp_head','wpdocs_output_current_post_taxonomies'); /** * Output taxonomies for the current post */ function wpdocs_output_current_post_taxonomies(){ global $post; $taxonomy_names = get_object_taxonomies( $post ); print_r( $taxonomy_names ); } ?>Expand full source codeCollapse full source code
will output
Array ( [0] => category [1] => post_tag [2] => post_format )