Is it doable the execute the referred to as add_filter in theme in spite of everything plugins they have been loaded?
I exploit one of the plugins from repository to can add the power to outline customized goal hyperlinks for gallery merchandise however this one packs extra issues which breaks my angular routing so I wish to take away theme.
the rule ought to work I’ve been examined.
dumping html reveals the plugins override isn’t current at this state.
I’ve in my capabilities.php
perform attachment_link_sanitize($html) {
$html = preg_replace("/class="no-lightbox" goal="_self"/", "", $html);
return $html;
}
add_filter('wp_get_attachment_link', 'attachment_link_sanitize',PHP_INT_MAX+1);
Sorry for disturbing I have been checking the plugins JS and looks like all the things comes from Jquery