Filter
rpress_fooditem_tag_args
On this page
Filters the arguments used to register the menu item tag taxonomy.
Runs while the menu taxonomies are registered on init, immediately before register_taxonomy() for the menu item tag taxonomy (fooditem_tag). The defaults are non-hierarchical, show_ui, query_var 'fooditem_tag', a rewrite slug built from the menu item slug plus '/tag', and capabilities mapped to the product term capabilities. The labels have already passed through rpress_fooditem_tag_labels.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$tag_args | array | Arguments for register_taxonomy(). |
Return value#
array. The registration arguments.
Example#
add_filter( 'rpress_fooditem_tag_args', 'my_fooditem_tag_args', 10, 1 );
function my_fooditem_tag_args( $tag_args ) {
$tag_args['show_in_rest'] = true;
return $tag_args;
}
Source#
Applied in:
includes/post-types.php(line 252), inrpress_setup_fooditem_taxonomies()
See also#
Was this page helpful?
