Last active
December 13, 2018 18:11
-
-
Save djrmom/47b9203d6904ef4a5b4621d0c0dbd685 to your computer and use it in GitHub Desktop.
facetwp/loaded hook
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
| <?php | |
| add_action( 'wp_head', function() { | |
| ?> | |
| <script> | |
| (function($) { | |
| $(function() { | |
| FWP.hooks.addAction('facetwp/loaded', function() { | |
| /* run code here after facetwp loaded, 100 below can be modified to set priority order */ | |
| }, 100 ); | |
| }); | |
| })(jQuery); | |
| </script> | |
| <?php | |
| }, 100 ); |
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
| (function($) { | |
| $(function() { | |
| FWP.hooks.addAction('facetwp/loaded', function() { | |
| /* run code here after facetwp loaded, 100 below can be modified to set priority order */ | |
| }, 100 ); | |
| }); | |
| })(jQuery); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment