Notice: Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the nfd_wpnavbar_setting handle.
Fix error message:
Notice: Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the nfd_wpnavbar_setting handle.
More details: https://github.com/bluehost/bluehost-wordpress-plugin/issues/1039
Proposed changes
Fix the notice by adding
set_wpnav_collapse_setting
toadmin_enqueue_scripts
hook.Type of Change
Checklist
Further comments