WordPress at a glance
class is not described

ActionScheduler_wpPostStore_TaxonomyRegistrar{} WC 1.0

Class ActionScheduler_wpPostStore_TaxonomyRegistrar

Hooks from the class
Return

null. Nothing.

Usage

$ActionScheduler_wpPostStore_TaxonomyRegistrar = new ActionScheduler_wpPostStore_TaxonomyRegistrar();
// use class methods

Methods

  1. register()
  2. taxonomy_args()

Code of ActionScheduler_wpPostStore_TaxonomyRegistrar{} WC 5.3.0

<?php
class ActionScheduler_wpPostStore_TaxonomyRegistrar {
	public function register() {
		register_taxonomy( ActionScheduler_wpPostStore::GROUP_TAXONOMY, ActionScheduler_wpPostStore::POST_TYPE, $this->taxonomy_args() );
	}

	protected function taxonomy_args() {
		$args = array(
			'label' => __( 'Action Group', 'woocommerce' ),
			'public' => false,
			'hierarchical' => false,
			'show_admin_column' => true,
			'query_var' => false,
			'rewrite' => false,
		);

		$args = apply_filters( 'action_scheduler_taxonomy_args', $args );
		return $args;
	}
}