My Courses > CustomizeWoo > Module 5 > Lesson 01: Issues With remove_action()

Issues With remove_action()

MARK LESSON AS COMPLETE

add_action() triggers a function attached to a specific hook – remove_action() removes that same function. However, remove_action() doesn’t always work – here’s why.

Video

Please note: English captions are enabled by default (click on “CC” in the video player to disable). Also, you can click on the “gear” icon to manage quality and playback speed. Enjoy!

Sorry, this video is only visible to logged in Business Bloomer Club members with a PRO PASS.
If you joined already, please log in.
Otherwise, here is why you should join the Club.

Useful Links

Function Reference: remove_action https://codex.wordpress.org/Function_Reference/remove_action

Function Reference: remove_all_actions https://codex.wordpress.org/Function_Reference/remove_all_actions

2 thoughts on “Issues With remove_action()

  1. So to turn off a sidebar I am currently hiding with CSS ‘display:none’
    I should add a child theme and then add to the child them something like:

     /**
    		 *  removed 6-2020 by Sam Crowe
    		 */
    
                   remove_action( 'woocommerce_sidebar' );
    
    
    1. Absolutely!

Questions? Feedback? Support? Leave your comment now!
_____

If you are writing code, please wrap it between: [php]code_here[/php]

Your email address will not be published. Required fields are marked *