WordPress.org

Ready to get started?Download WordPress

Codex

Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Plugin API/Action Reference/admin footer-(hookname)

Description

admin_footer-(hookname) 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:

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.

Example of use

Show a paragraph in footer of post edit page

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>";
}
This page is marked as incomplete. You can help Codex by expanding it.
This article is marked as in need of editing. You can help Codex by editing it.