class WordPressCustomTaxonomyTypeServiceProvider extends ServiceProvider

Properties

protected $plugin Instance of main plugin. from ServiceProvider
protected string $id Taxonomy key, must not exceed 32 characters.
protected $name
protected $plural
protected string $objectType The custpm post type id.
protected string $label Name of the taxonomy shown in the menu. Usually plural. If not set, labels['name'] will be used.
protected array $labels An array of labels for this taxonomy.
protected string $description A short descriptive summary of what the taxonomy is for. Defaults to blank.
protected bool $public If the taxonomy should be publicly queryable; //@TODO not implemented.
protected bool $hierarchical Whether the taxonomy is hierarchical (e.g. category). Defaults to false.
protected bool $showUI Whether to generate a default UI for managing this taxonomy in the admin.
protected bool $showInMenu Whether to show the taxonomy in the admin menu.
protected bool $showInNavMenus Makes this taxonomy available for selection in navigation menus.
protected bool $showTagcloud Whether to list the taxonomy in the Tag Cloud Widget.
protected bool $showInQuickEdit Whether to show the taxonomy in the quick/bulk edit panel.
protected bool $showAdminColumn Whether to display a column for the taxonomy on its post type listing screens.
protected null $metaBoxCb Provide a callback function for the meta box display.
protected array $capabilities Array of capabilities for this taxonomy. You can see accepted values in this function.
protected array $rewrite Triggers the handling of rewrites for this taxonomy. Defaults to true, using $taxonomy as slug.
protected string $slug Customize the permastruct slug. Defaults to $taxonomy key
protected bool $withFront Should the permastruct be prepended with WP_Rewrite::$front. Defaults to true.
protected bool $rewriteHierarchical Either hierarchical rewrite tag or not. Defaults to false.
protected int $epMask Assign an endpoint mask.
protected string $queryVar Sets the query_var key for this taxonomy. Defaults to $taxonomy key If false, a taxonomy cannot be loaded at ?{query_var}={term_slug} If specified as a string, the query ?{query_var_string}={term_slug} will be valid.
protected string $updateCountCallback Works much like a hook, in that it will be called when the count is updated.

Methods

void
register()

Register the service provider.

__construct($plugin)

No description

__call(string $method, array $parameters)

Dynamically handle missing method calls.

boot()

You may override this method in order to register your own actions and filters.

array
args()

Return the default args.

array
rewrite()

Return defaults rewrite.

array
labels()

Return defaults labels.

Details

at line 206
void register()

Register the service provider.

Return Value

void

in ServiceProvider at line 22
__construct($plugin)

Parameters

$plugin

in ServiceProvider at line 33
__call(string $method, array $parameters)

Dynamically handle missing method calls.

Parameters

string $method
array $parameters

at line 219
boot()

You may override this method in order to register your own actions and filters.

at line 230
protected array args()

Return the default args.

Return Value

array

at line 264
protected array rewrite()

Return defaults rewrite.

'slug' => string Customize the permastruct slug. Defaults to $taxonomy key 'with_front' => bool Should the permastruct be prepended with WP_Rewrite::$front. Defaults to true. 'hierarchical' => bool Either hierarchical rewrite tag or not. Defaults to false. 'ep_mask' => const Assign an endpoint mask. If not specified, defaults to EP_NONE.

Return Value

array

at line 283
protected array labels()

Return defaults labels.

Return Value

array