Title: WP_Customize_Widgets::print_footer_scripts
Published: April 25, 2014
Last modified: February 24, 2026

---

# WP_Customize_Widgets::print_footer_scripts()

## In this article

 * [Source](https://developer.wordpress.org/reference/classes/wp_customize_widgets/print_footer_scripts/?output_format=md#source)
 * [Hooks](https://developer.wordpress.org/reference/classes/wp_customize_widgets/print_footer_scripts/?output_format=md#hooks)
 * [Related](https://developer.wordpress.org/reference/classes/wp_customize_widgets/print_footer_scripts/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/classes/wp_customize_widgets/print_footer_scripts/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/classes/wp_customize_widgets/print_footer_scripts/?output_format=md#wp--skip-link--target)

Calls admin_print_footer_scripts and admin_print_scripts hooks to allow custom scripts
from plugins.

## 󠀁[Source](https://developer.wordpress.org/reference/classes/wp_customize_widgets/print_footer_scripts/?output_format=md#source)󠁿

    ```php
    public function print_footer_scripts() {
    	/** This action is documented in wp-admin/admin-footer.php */
    	do_action( 'admin_print_footer_scripts-widgets.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores

    	/** This action is documented in wp-admin/admin-footer.php */
    	do_action( 'admin_print_footer_scripts' );

    	/** This action is documented in wp-admin/admin-footer.php */
    	do_action( 'admin_footer-widgets.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/class-wp-customize-widgets.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-includes/class-wp-customize-widgets.php#L976)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/class-wp-customize-widgets.php#L976-L985)

## 󠀁[Hooks](https://developer.wordpress.org/reference/classes/wp_customize_widgets/print_footer_scripts/?output_format=md#hooks)󠁿

 [do_action( ‘admin_print_footer_scripts’ )](https://developer.wordpress.org/reference/hooks/admin_print_footer_scripts/)

Prints any scripts and data queued for the footer.

## 󠀁[Related](https://developer.wordpress.org/reference/classes/wp_customize_widgets/print_footer_scripts/?output_format=md#related)󠁿

| Uses | Description | 
| [do_action()](https://developer.wordpress.org/reference/functions/do_action/)`wp-includes/plugin.php` |

Calls the callback functions that have been added to an action hook.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/classes/wp_customize_widgets/print_footer_scripts/?output_format=md#changelog)󠁿

| Version | Description | 
| [3.9.0](https://developer.wordpress.org/reference/since/3.9.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fclasses%2Fwp_customize_widgets%2Fprint_footer_scripts%2F)
before being able to contribute a note or feedback.