admin_footer-{$hook_suffix} WordPress Action Hook

The admin_footer-{$hook_suffix} hook is called in the admin footer on all admin pages. This hook can be used to add custom content or perform actions before the default admin footer content is output.

do_action( "admin_footer-{$hook_suffix}" ) #

Prints scripts or data after the default footer scripts.


Description

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


Top ↑

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:

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.


Top ↑

Source

File: wp-admin/admin-footer.php

View on Trac


Top ↑

Changelog

Changelog
VersionDescription
2.8.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.