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:

functions.php
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.

  1. Website Builder by SeedProd icon Website Builder by SeedProd600,000+ installs do_action( 'wp_print_footer_scripts' ) app/routes.php:48
  2. Gutenberg icon Gutenberg400,000+ installs do_action( 'wp_print_footer_scripts' ) lib/experimental/class-wp-rest-block-editor-settings-controller.php:435
  3. YITH WooCommerce Compare icon YITH WooCommerce Compare100,000+ installs do_action( 'wp_print_footer_scripts' ) templates/yith-compare-popup.php:84
  4. hCaptcha for WP icon hCaptcha for WP70,000+ installs do_action( 'wp_print_footer_scripts' ) src/php/Maintenance/Login.php:84
  5. iConvert Promoter icon iConvert Promoter2,000+ installs do_action( 'wp_print_footer_scripts' ) Core/Frontend/Actions/Ajax/FrontendPromoLoadActions.php:240
  6. wePOS icon wePOS2,000+ installs do_action( 'wp_print_footer_scripts' ) includes/Frontend.php:31
  7. Jovvie Point of Sale POS for WooCommerce icon Jovvie Point of Sale POS for WooCommerce100+ installs do_action( 'wp_print_footer_scripts' ) includes/Frontend.php:208
  8. WP Twitter Wall icon WP Twitter Wall10+ installs do_action( 'wp_print_footer_scripts' ) twitter-wall-template.php:31
  9. AssetPilot icon 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.