وردپرس

Plugin messes wptexturize by running too early


Hi!

I disabled wptexturize feature on my site by adding this code in functions.php:

add_filter('run_wptexturize', '__return_false');

Turned out this code isn’t working because of your plugin. I have 50 different plugins on my site and your the only one the messes it. Reason – code in your plugin runs earlier than code in my functions.php.

function boot() in woo-product-feed-pro/bootstrap/app.php adds action to ‘setup_theme‘ to run:

  • function run()
  • which runs get_plugin_data()
  • which runs _get_plugin_data_markup_translate()
  • which runs wptexturize()

wptexturize() has static variables and since they set up by first function run I cannot change them later in my functions.php.

Can you fix this problem? Why your plugin uses ‘setup_theme‘ hook? Is it so necessary? As I said among 50 plugins on my site your the only one with this behavior. Even caching plugins doesn’t do that. Can you this functions later after WordPress reads code in functions.php file?

این خبر را در ایران وب سازان مرجع وب و فناوری دنبال کنید

مشاهده پاسخ های این مطلب
———————————————
این مطلب از سایت انجمن وردپرس گردآوری شده است و کلیه حقوق مطلق به انجمن وردپرس می باشد در صورت مغایرت و یا بروز مشکل اطلاع دهید تا حذف گردد

منبع: انجمن وردپرس

دکمه بازگشت به بالا