We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
abstract class Taxonomy
Para crear taxonomías debemos crear una nueva clase extendida de WASP\Taxonomy\Taxonomy.
WASP\Taxonomy\Taxonomy
<?php use WASP\Taxonomy\Taxonomy; class My_Plugin_Custom_Taxonomy extends Taxonomy { function __construct() { parent::__construct(); $this->taxonomy = 'my-custom-taxonomy'; $this->object_type = 'post'; $this->labels = array( ... ); $this->args = array( ... ); } } new My_Plugin_Custom_Taxonomy;
La propiedad labels hace referencia a $args['labels'] en la función register_taxonomy(), args al resto de los argumentos pasados a esta función.
labels
$args['labels']
register_taxonomy()
args