Skip to content
Docs
Get RestroPress

Filter

rpress_fooditem_tag_labels

Updated
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#

ParameterTypeDescription
$tag_labelsarrayLabel 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), in rpress_setup_fooditem_taxonomies()

See also#

Was this page helpful?