mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-13 03:36:28 +09:00
797bc2fd98
git-subtree-dir: includes/lib/action-scheduler git-subtree-split: c828347715e6c3318c8ab8b4fea2d87b31d51aac
33 lines
713 B
PHP
33 lines
713 B
PHP
<?php
|
|
|
|
/**
|
|
* Class ActionScheduler_wpPostStore_TaxonomyRegistrar
|
|
* @codeCoverageIgnore
|
|
*/
|
|
class ActionScheduler_wpPostStore_TaxonomyRegistrar {
|
|
|
|
/**
|
|
* Registrar.
|
|
*/
|
|
public function register() {
|
|
register_taxonomy( ActionScheduler_wpPostStore::GROUP_TAXONOMY, ActionScheduler_wpPostStore::POST_TYPE, $this->taxonomy_args() );
|
|
}
|
|
|
|
/**
|
|
* Get taxonomy arguments.
|
|
*/
|
|
protected function taxonomy_args() {
|
|
$args = array(
|
|
'label' => __( 'Action Group', 'action-scheduler' ),
|
|
'public' => false,
|
|
'hierarchical' => false,
|
|
'show_admin_column' => true,
|
|
'query_var' => false,
|
|
'rewrite' => false,
|
|
);
|
|
|
|
$args = apply_filters( 'action_scheduler_taxonomy_args', $args );
|
|
return $args;
|
|
}
|
|
}
|