Cannot add_filter for plugins_url function
Hi,
Today I would like to try AnsPress on my WordPress website I’ve already working filter like this :
add_filter(‘plugins_url’, ‘correct_form_url’);
function correct_form_url($url) {
… my stuff
}
But it doesn’t work only for Anspress plugins. After some investigations i found the problem. On WordPress plugins are loaded earler than my theme/functions.php so my filter is loaded after AnsPress initialization. AnsPress use “plugins_url” function into “_setup_constants()” function into initialization…
Can you fix this one? Because we can’t filter each WordPress functions used in AnsPress initialization.
Thanks !
I will check this. Feel free to push a pull request to our github repository if you have the fix already.
will be fixed soon, already added to current roadmap.
Thanks, i’m sorry but i don’t have the fix, i don’t have enough knowledge into AnsPress 😉
Any ETA to see fix for this, live on production ? in days, months? more?