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

Plugin API/Action Reference/admin footer-(plugin page)


admin_footer-(plugin_page) is triggered at the end of the <body> section of a specific plugin-generated 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.

This hook is an action which means that it primarily acts as an event trigger, instead of a content filter. This is a semantic difference, but it will help you to remember what this hook does if you use it like this:

add_action( 'admin_menu', 'myplugin_setup_options' );

function myplugin_setup_options(){
  $plugin_page=add_options_page( 'My Plugin', 'myplugin', 'My Plugin', 'myplugin', 8, basename(__FILE__), 'myplugin_main' );
  add_action( 'admin_footer-'. $plugin_page, 'myplugin_admin_footer' );

function myplugin_admin_footer(){
  echo "<p>Im a paragraph, and i will show at the end of the plugin generated page, inside the page's body.</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.