Hot answers tagged

1

It still displays the script because you are using the wrong hook (and it doesn't exist) — wp_dequeue_scripts, and secondly, if the script is indeed enqueued via wp_enqueue_script(), then the generated id (used in the <script> tag) is in the form of <script handle>-js (i.e. suffixed with a -js) where <script handle> is the first parameter ...


1

I figured out that the problem was with executing the simplexml_load_file, and it simply required going to my php.ini file and setting allow_url_fopen flag from off to on. The code now executes flawlessly and the output is as intended.


1

You can try something like this: add_action( 'woocommerce_before_add_to_cart_form', 'add_list_completed_orders' ); function add_list_completed_orders() { // get orders $orders = wc_get_orders ( array ( 'status' => array( 'wc-completed' ), 'type' => 'shop_order', 'limit' => -...


1

9 years and a pandemic later, I found my way to do use the filter of @mrwweb and create a nicely working Bootstrap (4) collapse with the Wordpress widgets: Because the dynamic_sidebar_params do contain unique params (such as ID) you can use this to add a custom collapse ID to each widget created. See: https://developer.wordpress.org/reference/hooks/...


Only top voted, non community-wiki answers of a minimum length are eligible