Timeline for remove_action on after_setup_theme not working from child theme
Current License: CC BY-SA 3.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 9, 2014 at 11:18 | comment | added | Smoking Sheriff |
Worked! I have been trying something similar, but my bad! Since I put a condition using has_action to check a still non-existent action in child functions.php, before remove_action it wasn't working!! Thanks a lot! function etn(){ if(has_action('after_setup_theme', 'et_pb_setup_theme')){ remove_action ('after_setup_theme', 'et_pb_setup_theme' ); } } add_action ('after_setup_theme', 'etn', 9);
|
|
Dec 9, 2014 at 11:07 | vote | accept | Smoking Sheriff | ||
Dec 9, 2014 at 9:29 | history | answered | tfrommen | CC BY-SA 3.0 |