I use a very modern and fully-featured theme that has a lot of custom functions. Something like Avada, Enfold, etc.
There's this function called medigroup_mikado_custom_breadcrumbs that's being called at wp-content/themes/mytheme/framework/modules/title/title-functions.php and I'm trying to filter it in functions, with this code:
function custom_debug_breadcrumb($breadcrumb) {
$breadcrumb = "test";
return $breadcrumb;
}
add_filter('medigroup_mikado_custom_breadcrumbs', 'custom_debug_breadcrumb', 10);
However, no matter what I put on that function, it doesn't seem to run at all.
My question is, can I filter a function called by a theme? Only for knowledge purposes, what if it was a plugin? Can I only filter core?