Filter
rpress_fooditem_tag_labels
On this page
Filters the labels of the menu item tag taxonomy.
Runs while the menu taxonomies are registered on init, when the arguments for the menu item tag taxonomy are built. The array holds the standard taxonomy label keys such as 'name', 'singular_name', 'add_new_item' and 'menu_name'.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$tag_labels | array | Label key => translated string. |
Return value#
array. The labels array.
Example#
add_filter( 'rpress_fooditem_tag_labels', 'my_fooditem_tag_labels', 10, 1 );
function my_fooditem_tag_labels( $tag_labels ) {
$tag_labels['menu_name'] = __( 'My label', 'my-plugin' );
return $tag_labels;
}
Source#
Applied in:
includes/post-types.php(line 254), inrpress_setup_fooditem_taxonomies()
See also#
Was this page helpful?
