style_loader_tag not changing stylesheet to preload

I tested your code and it seems to work fine, my guess is that your $targetHanldes containes the wrong handles. Best option would be to see what $html and $handle contain and that way you could add them to the haystack. But for now try this instead $targetHanldes = array(‘flexible-shipping-notices’, ‘animate’); Again this is pure … Read more

WordPress remove_filter not working

The “remove_filter” function only accepts 3 params: the hook name (“wp_date”), the callback function (“wpp_fix_i18n”) and the priority (10). You are using 4 params. I’m sure your problem is related with the execution lifecycle. You are trying to remove a filter before it was created. To solve it, wrap your function inside init hook in … Read more