wp-structuring-markup
wp-structuring-markup copied to clipboard
How to wrap the breadcrumb items with span tag?
I have tried code like this, but not working.
add_filter('structuring_markup_meta_breadcrumb', function($out) {
$out = str_replace('<li>', '<li><span>', $out);
$out = str_replace('</li>', '</span><li>', $out);
return $out;
});