I am trying to remove a theme action for an elegant-themes theme using a child theme.. This works when I remove action after add_action code anywhere in the parent theme functions.php. However, it does not work when I add it from child theme functions.php.
remove_action ('after_setup_theme', 'et_pb_setup_theme' , 10);
Remove action has same priority 10 as the add action. Shouldn't it work?
add_action( 'after_setup_theme', 'et_pb_setup_theme' ); //parent theme add_action