This filter allows a plugin to alter the items that appear in the items/browse navigation on the public theme.
Callers
Called by the public_nav_items() helper, generally on items/browse.
Arguments
- array
$nav
{{#if - | (optional)}}
- An array of label => URI pairs.
- {{#if: | Default:
{{{default}}}
}}
Example
To add a link to a new browse page created by a plugin, you would use this filter like this:
add_filter('public_navigation_items', 'my_plugin_public_navigation_items'); function my_plugin_public_navigation_items($nav) { $nav['Browse by My Plugin'] = uri('my-plugin/browse-items'); return $nav; }
Version
Added in Omeka 1.3.