How to use the JavaScript WordPress Hooks API (Without Any Extra Libraries)
…array(‘jquery-core’, ‘nebula-nebula’, ‘wp-hooks’), nebula()->child_version(), true); Note that Nebula’s bundled child theme already added ‘wp-hooks’ as a dependency to main.js. WordPress Hooks API JavaScript Functions Once you’re in your JavaScript file,…