Hook for writing text string after footer scripts

If you change the priority on the hook to wp_footer you should be able to shift when it’s called in reference to the enqueue functions.

Example:

add_action('wp_footer', 'my_footer_hook', PHP_INT_MAX);

Leave a Comment

tech