WordPress action hook · part of WordPress core
wp_footer
A WordPress core action that 22 plugins also fire themselves, running on 4.7M+ sites between them.
How to use wp_footer
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_footer', function() {
// Your code runs here.
}, 10, 1 );Argument names come from UpdraftPlus: WP Backup & Migration Plugin'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 →
22 plugins that fire wp_footer
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
UpdraftPlus: WP Backup & Migration Plugin4+ million installs
do_action( 'wp_footer' )central/modules/analytics.php:125 -
Website Builder by SeedProd600,000+ installs
do_action( 'wp_footer' )app/routes.php:49 -
Beaver Builder Page Builder100,000+ installs
do_action( 'wp_footer' )includes/ui-iframe.php:57 -
Better Messages10,000+ installs
do_action( 'wp_footer' )inc/design.php:936 -
WPAdverts4,000+ installs
do_action( 'wp_footer' )addons/payments/templates/white-page.php:21 -
Creta Testimonial Showcase3,000+ installs
do_action( 'wp_footer' )admin/class-meta-shortcode.php:325 -
Custom Login Page Templates2,000+ installs
do_action( 'wp_footer' )includes/customizer.php:278 -
Source Lens300+ installs
do_action( 'wp_footer' )includes/class-slcf-header-footer-scanner.php:88 -
Email Customizer300+ installs
do_action( 'wp_footer' )includes/template/footer.php:16 -
Mobile App Canvas200+ installs
do_action( 'wp_footer' )templates/notifications/list.php:203 -
Treweler Map Builder80+ installs
do_action( 'wp_footer' )includes/twer-template-functions.php:67 -
iWPhone70+ installs
do_action( 'wp_footer' )iwphone-by-contentrobot/footer.php:6 -
HTTPS Mixed Content Detector60+ installs
do_action( 'wp_footer' )violation-locations/enqueue-base.php:70 -
Ask My Content20+ installs
do_action( 'wp_footer' )includes/content.php:918 -
TableCrafter10+ installs
do_action( 'wp_footer' )includes/class-tc-ajax.php:7619 -
Postr For Nostr10+ installs
do_action( 'wp_footer' )classes/Plugin.php:197 -
MotaWord Translation10+ installs
do_action( 'wp_footer', 'wp_admin_bar_render', 1000 )includes/class-motaword-active-serve.php:300 -
AssetPilotFewer than 10 installs
do_action( 'wp_footer' )includes/Assets/AssetCapture.php:114 -
Shoot My FileFewer than 10 installs
do_action( 'wp_footer' )includes/request.php:63 -
BconGlobalFewer than 10 installs
do_action( 'wp_footer' )php/Bcon.php:697 -
Alpha FieldsFewer than 10 installs
do_action( 'wp_footer' )includes/extensions/form-styler/preview.php:182 -
Smart Woo Service InvoicingFewer than 10 installs
do_action( 'wp_footer' )includes/frontend/class-smartwoo-client-portal.php:115
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.