Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: after_menu_locations_table

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
596                          </tr><!-- #menu-locations-row -->
597                     <?php } // foreach ?>
598                     </tbody>
599                </table>
600                <p class="button-controls"><?php submit_button( __( 'Save Changes' ), 'primary left', 'nav-menu-locations', false ); ?></p>
601                <?php wp_nonce_field( 'save-menu-locations' ); ?>
602                <input type="hidden" name="menu" id="nav-menu-meta-object-id" value="<?php echo esc_attr( $nav_menu_selected_id ); ?>" />
603           </form>
604      </div><!-- #menu-locations-wrap -->
605      <?php do_action( 'after_menu_locations_table' ); ?>
606      <?php else : ?>
607      <div class="manage-menus">
608            <?php if ( $menu_count < 2 ) : ?>
609           <span class="add-edit-menu-action">
610                <?php printf( __( 'Edit your menu below, or <a href="%s">create a new menu</a>.' ), esc_url( add_query_arg( array( 'action' => 'edit', 'menu' => 0 ), admin_url( 'nav-menus.php' ) ) ) ); ?>
611           </span><!-- /add-edit-menu-action -->
612           <?php else : ?>
613                <form method="get" action="<?php echo admin_url( 'nav-menus.php' ); ?>">
614                <input type="hidden" name="action" value="edit" />