Created
September 6, 2019 02:03
-
-
Save shrinkray/044b2a3b7c02aee6a211bc79240a6b3d to your computer and use it in GitHub Desktop.
Set a high priority for Theme Assets add_action call for enqueuing theme scripts to fix console error where ACF appears before jQuery
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * THEME ASSETS | |
| * | |
| * Note: 999 is setting late Priority. This is to circumvent issue where ACF code appears before jquery for some dumb reason. | |
| * @priority 999 | |
| */ | |
| add_action( 'wp_enqueue_scripts', __NAMESPACE__ . '\\assets', 999 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment