remove_action stopped working
-
These two commands
`
remove_action( ‘woocommerce_after_shop_loop_item_title’, ‘woocommerce_template_loop_price’, 10 );
add_action( ‘woocommerce_after_shop_loop_item’, ‘woocommerce_template_loop_price’, 5 );`are working in my development environment MAMP. And at first they were working on my hosting server (godaddy). But after I activated Autoptimize and Async JavaScript, the remove_action command ceased to work. I deactivated both plugins, but it still refuses to work on the server. I even deleted Async Javascript, but the remove_action command refuses to function.
The remove_action command continues to work properly in the MAMP environment where I never tried those two plugins. And the add_action continues to work in both environments. But I can’t restore functionality on the hosting server.
In case you can’t tell: I’m trying to move the price below the excerpt on the shop page’s list view.
Warning: web site contains sexually-related (NSFW) subject matter: https://www.hypnoticdreams.com/mp3s/
Can anyone help me restore this function?
The page I need help with: [log in to see the link]
- The topic ‘remove_action stopped working’ is closed to new replies.