Title: admin_footer-{$hook_suffix}
Published: August 16, 2016
Last modified: August 20, 2026

---

# do_action( “admin_footer-{$hook_suffix}” )

## In this article

 * [Description](https://developer.wordpress.org/reference/hooks/admin_footer-hook_suffix/?output_format=md#description)
 * [More Information](https://developer.wordpress.org/reference/hooks/admin_footer-hook_suffix/?output_format=md#more-information)
 * [Source](https://developer.wordpress.org/reference/hooks/admin_footer-hook_suffix/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/admin_footer-hook_suffix/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/admin_footer-hook_suffix/?output_format=md#changelog)
 * [User Contributed Notes](https://developer.wordpress.org/reference/hooks/admin_footer-hook_suffix/?output_format=md#user-contributed-notes)

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

Prints scripts or data after the default footer scripts.

## 󠀁[Description](https://developer.wordpress.org/reference/hooks/admin_footer-hook_suffix/?output_format=md#description)󠁿

The dynamic portion of the hook name, `$hook_suffix`, refers to the global hook 
suffix of the current page.

## 󠀁[More Information](https://developer.wordpress.org/reference/hooks/admin_footer-hook_suffix/?output_format=md#more-information)󠁿

admin_footer-($hook_suffix) is triggered at the end of the <body> section of a specific
admin page, after `admin_footer` and `admin_print_footer_scripts` actions.

The hookname part you can get using the variable $GLOBALS['hook_suffix']. Examples
of actions:

    ```wp-block-preformatted
    add_action('admin_footer-edit.php', 'my_post_list_page_hook'); // Fired on the page with the posts table
    add_action('admin_footer-post.php', 'my_post_edit_page_hook'); // Fired on post edit page
    add_action('admin_footer-post-new.php', 'my_new_post_page_hook'); // Fired on add new post page
    ```

This hook provides no parameters. You use this hook by having your function echo
output to the browser, or by having it perform background tasks. Your functions 
shouldn’t return, and shouldn’t take any parameters.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/admin_footer-hook_suffix/?output_format=md#source)󠁿

    ```php
    do_action( "admin_footer-{$hook_suffix}" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-admin/admin-footer.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.1/src/wp-admin/admin-footer.php#L105)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/admin-footer.php#L105-L105)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/admin_footer-hook_suffix/?output_format=md#related)󠁿

| Used by | Description | 
| [wp_options_connectors_render_page()](https://developer.wordpress.org/reference/functions/wp_options_connectors_render_page/)`wp-includes/build/pages/options-connectors/page.php` |

Render the options-connectors page.

  | 
| [wp_font_library_render_page()](https://developer.wordpress.org/reference/functions/wp_font_library_render_page/)`wp-includes/build/pages/font-library/page.php` |

Render the font-library page.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/admin_footer-hook_suffix/?output_format=md#changelog)󠁿

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

## 󠀁[User Contributed Notes](https://developer.wordpress.org/reference/hooks/admin_footer-hook_suffix/?output_format=md#user-contributed-notes)󠁿

 1.  [Skip to note 2 content](https://developer.wordpress.org/reference/hooks/admin_footer-hook_suffix/?output_format=md#comment-content-4546)
 2.   [Akira Tachibana](https://profiles.wordpress.org/atachibana/)  [  6 years ago  ](https://developer.wordpress.org/reference/hooks/admin_footer-hook_suffix/#comment-4546)
 3. [You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fadmin_footer-hook_suffix%2F%23comment-4546)
    Vote results for this note: 0[You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fadmin_footer-hook_suffix%2F%23comment-4546)
 4. (From Codex)
     Show a paragraph in footer of post edit page
 5.     ```php
        add_action( 'admin_footer-post.php', 'my_post_edit_page_footer' );
    
        function my_post_edit_page_footer(){
          echo "<p>This paragraph will be shown in footer of the post edit page.</p>";
        }
        ```
    
 6.  [Log in to add feedback](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fadmin_footer-hook_suffix%2F%3Freplytocom%3D4546%23feedback-editor-4546)

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