hamworks / wp-taxonomy
Installs: 3 339
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- doctrine/inflector: ^2.0
Requires (Dev)
README
$builder = new HAMWORKS\WP\Taxonomy\Builder( 'slug', 'name', [ 'post' ] ); $builder->set_options( [ 'public' => true, 'description' => '', 'has_archive' => true, ] ); $builder->create();
Set initial term.
$builder = new HAMWORKS\WP\Taxonomy\Builder( 'slug', 'name', [ 'post' ] ); $builder->set_options( [ 'public' => true, 'description' => '', 'has_archive' => true, ] ); $your_term = new \HAMWORKS\WP\Taxonomy\Term( 'name', 'slug' ); $builder->set_initial_term( $your_term ); $builder->create();