after_menu_locations_table
Fires after the table on the Appearance → Menus → Manage Locations admin tab, allowing HTML to be output.
The event fires at the very end of the content on the “Appearance → Menus → Manage Locations (tab)” admin page.
Usage
add_action( 'after_menu_locations_table', 'wp_kama_after_menu_locations_table_action' );
/**
* Function for `after_menu_locations_table` action-hook.
*
* @return void
*/
function wp_kama_after_menu_locations_table_action(){
// action...
}
Examples
#1 Output text after the table
<?php
add_action( 'after_menu_locations_table', function () {
?>
<div style="padding: 10px;background: aquamarine;">
<p style="font-size: 20px;">The <b>after_menu_locations_table</b> hook fired here</p>
</div>
<?php
} );Changelog
| Since 3.6.0 | Introduced. |
Where the hook is called
In file: /wp-admin/nav-menus.php
after_menu_locations_table
wp-admin/nav-menus.php 941
do_action( 'after_menu_locations_table' );
