move custom sidebar display button
-
I’m trying to move the custom sidebar botton to another location using this code:
add_action( 'wp_head', 'my_remove_BeRocket_custom_sidebar', 9999); function my_remove_BeRocket_custom_sidebar() { remove_action( 'woocommerce_archive_description', array('BeRocket_AAPF_custom_sidebar', 'custom_sidebar_toggle'), 1); } add_action( 'woocommerce_before_shop_loop', array('BeRocket_AAPF_custom_sidebar', 'custom_sidebar_toggle'), 40 );
The custom sidebar button is well added in the right place, but not removed in the old one. What am I doing wrong?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘move custom sidebar display button’ is closed to new replies.