Use after_setup_theme
to remove the parent handler, which runs once both the parent & child functions have been loaded:
add_action( 'after_setup_theme', function () {
remove_action( 'wp_footer', 'parent_enqueue_scripts' );
});
Use after_setup_theme
to remove the parent handler, which runs once both the parent & child functions have been loaded:
add_action( 'after_setup_theme', function () {
remove_action( 'wp_footer', 'parent_enqueue_scripts' );
});