Quantcast
Channel: Question and Answer » footer
Viewing all articles
Browse latest Browse all 23

Action wp_footer with priority 1 is after wp_print_footer_scripts

$
0
0

In my WordPress 4.1 instance I found a strange thing. The wp_footer action print_script with priority 1 is executed after wp_print_footer_scripts which has priority 20.

add_action( 'wp_footer', array( &$this, 'print_script' ), 1 );

I thought that it’s a problem with my plugin or something. I put the code in the functions.php and the same problem.


Viewing all articles
Browse latest Browse all 23

Trending Articles