WordPress.org

Make WordPress Core

Ticket #12881: nav_menus_admin_hooks.diff

File nav_menus_admin_hooks.diff, 663 bytes (added by ptahdunbar, 8 years ago)

adds a hook to the top and bottom of the nav menus admin

  • wp-admin/nav-menus.php

     
    327327<div class="wrap">
    328328        <?php screen_icon(); ?>
    329329        <h2><?php esc_html_e('Menus'); ?></h2>
     330       
     331        <?php do_action( 'nav_menus_before_admin_page' ); ?>
     332       
    330333        <?php
    331334        foreach( $messages as $message ) :
    332335                echo $message . "\n";
     
    435438        </div><!-- /#menu-management-liquid -->
    436439        </div><!-- /#nav-menus-frame-->
    437440        <?php endif; // if menus supported in current theme ?>
     441       
     442        <?php do_action( 'nav_menus_after_admin_page' ); ?>
     443       
    438444</div><!-- /.wrap-->
    439445
    440446