[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/ -> class-wp-taxonomy.php (summary)

Taxonomy API: WP_Taxonomy class

File Size: 546 lines (13 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 7 functions

  __construct()
  set_props()
  add_rewrite_rules()
  remove_rewrite_rules()
  add_hooks()
  remove_hooks()
  get_rest_controller()

Functions
Functions that are not part of a class:

__construct( $taxonomy, $object_type, $args = array()   X-Ref
Constructor.

param: string       $taxonomy    Taxonomy key, must not exceed 32 characters.
param: array|string $object_type Name of the object type for the taxonomy object.
param: array|string $args        Optional. Array or query string of arguments for registering a taxonomy.

set_props( $object_type, $args )   X-Ref
Sets taxonomy properties.

param: array|string $object_type Name of the object type for the taxonomy object.
param: array|string $args        Array or query string of arguments for registering a taxonomy.

add_rewrite_rules()   X-Ref
Adds the necessary rewrite rules for the taxonomy.


remove_rewrite_rules()   X-Ref
Removes any rewrite rules, permastructs, and rules for the taxonomy.


add_hooks()   X-Ref
Registers the ajax callback for the meta box.


remove_hooks()   X-Ref
Removes the ajax callback for the meta box.


get_rest_controller()   X-Ref
Gets the REST API controller for this taxonomy.

Will only instantiate the controller class once per request.

return: WP_REST_Controller|null The controller instance, or null if the taxonomy



Generated : Tue Oct 20 08:20:01 2020 Cross-referenced by PHPXref