WordPress action hook · part of WordPress core
wp_print_footer_scripts
A WordPress core action that 9 plugins also fire themselves, running on 1.2M+ sites between them.
How to use wp_print_footer_scripts
It's an action: your callback runs at that point. Nothing needs to be returned.
Add this to your theme's functions.php or a small custom plugin:
add_action( 'wp_print_footer_scripts', function() {
// Your code runs here.
}, 10, 1 );Argument names come from Website Builder by SeedProd's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
This hook is fired by WordPress core too. Official reference on developer.wordpress.org →
9 plugins that fire wp_print_footer_scripts
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
Website Builder by SeedProd600,000+ installs
do_action( 'wp_print_footer_scripts' )app/routes.php:48 -
Gutenberg400,000+ installs
do_action( 'wp_print_footer_scripts' )lib/experimental/class-wp-rest-block-editor-settings-controller.php:435 -
YITH WooCommerce Compare100,000+ installs
do_action( 'wp_print_footer_scripts' )templates/yith-compare-popup.php:84 -
hCaptcha for WP70,000+ installs
do_action( 'wp_print_footer_scripts' )src/php/Maintenance/Login.php:84 -
iConvert Promoter2,000+ installs
do_action( 'wp_print_footer_scripts' )Core/Frontend/Actions/Ajax/FrontendPromoLoadActions.php:240 -
wePOS2,000+ installs
do_action( 'wp_print_footer_scripts' )includes/Frontend.php:31 -
Jovvie Point of Sale POS for WooCommerce100+ installs
do_action( 'wp_print_footer_scripts' )includes/Frontend.php:208 -
WP Twitter Wall10+ installs
do_action( 'wp_print_footer_scripts' )twitter-wall-template.php:31 -
AssetPilotFewer than 10 installs
do_action( 'wp_print_footer_scripts' )includes/Assets/AssetCapture.php:116
Need a customisation built on this hook?
Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.