dovich
Forum Replies Created
-
Forum: Plugins
In reply to: [WP REST Cache] Headers duplicatesThank you, Richard. I really appreciate your work.
Forum: Plugins
In reply to: [WP REST Cache] Headers duplicatesThank You!
Forum: Plugins
In reply to: [WP REST Cache] Headers duplicatesHi, Richard.
Thank you for your plugin!
I completely forgot tell you about a “little” detail – default WP rest headers is disbled, and it’s possible directly from my code:
remove_filter( 'rest_pre_serve_request', 'rest_send_cors_headers' );So there is no problem with my nginx configuration, and all headers are controled by nginx (production necessity).
I just asked you about the possibility to somehow disable sending headers in your plugin – be it a filter or an option in the admin panel.
Thank you.
You are right! Just figured out that $term is empty.
Instead of using
$_GET['term']
I must use
get_search_query();Thank You!
Forum: Plugins
In reply to: [WooCommerce] Get product type (check is it "external") for further actionHow can I set up it in header? var_dump($product) shows me only product title, meanwhile if i call var_dump directly on product page, it shows me a huge array.