Title: wp_print_footer_scripts
Published: April 25, 2014
Last modified: May 20, 2026

---

# wp_print_footer_scripts()

## In this article

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

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

Hooks to print the scripts and styles in the footer.

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

    ```php
    function wp_print_footer_scripts() {
    	/**
    	 * Fires when footer scripts are printed.
    	 *
    	 * @since 2.8.0
    	 */
    	do_action( 'wp_print_footer_scripts' );
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/script-loader.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-includes/script-loader.php#L2306)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/script-loader.php#L2306-L2313)

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

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

Fires when footer scripts are printed.

## 󠀁[Related](https://developer.wordpress.org/reference/functions/wp_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.

  |

| Used by | Description | 
| [_wp_get_iframed_editor_assets()](https://developer.wordpress.org/reference/functions/_wp_get_iframed_editor_assets/)`wp-includes/block-editor.php` |

Collect the block editor assets that need to be loaded into the editor’s iframe.

  |

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

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

## User Contributed Notes

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