Filtering breadcrumb title
-
There’s what looks like a really useful filter in breadcrumb navxt: bcn_breadcrumb_title. Unfortunately it’s only used in the set_title method, and not in the default constructor. Most breadcrumbs have their titles set through the default constructor.
Fixing this is a really simple code change: in the default constructor, do
$this->title = apply_filters('bcn_breadcrumb_title', __($title, 'breadcrumb_navxt'));
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Filtering breadcrumb title’ is closed to new replies.