Drag and drop menu items to the desired position. Optionally change item titles or hide some items until "Show All" at the bottom of the admin menu is clicked.
strip_html_tags_and_content( $menu_info[0] ) );
} else {
// Get defaul/custom menu item title
foreach ( $custom_menu_titles as $custom_menu_title ) {
// At this point, $custom_menu_title value looks like toplevel_page_snippets__Code Snippets
$custom_menu_title = explode( '__', $custom_menu_title );
if ( $custom_menu_title[0] == $menu_item_id ) { $menu_item_title = $common_methods->strip_html_tags_and_content( $custom_menu_title[1] ); // e.g. Code Snippets
break; // stop foreach loop so $menu_item_title is not overwritten in the next iteration
} else {
$menu_item_title = $common_methods->strip_html_tags_and_content( $menu_info[0] );
}
}
?>
';
$field_id = 'custom_menu_titles';
$field_name = AMCUST_SLUG_U . '['. $field_id .']';
$field_option_value = ( isset( $options[$field_id] ) ) ? $options[$field_id] : '';
// Hidden input field to store custom menu titles (from options as is, or custom values entered on each non-WP-default menu items.
echo '';
$field_id = 'custom_menu_hidden';
$field_name = AMCUST_SLUG_U . '['. $field_id .']';
$field_option_value = ( isset( $options[$field_id] ) ) ? $options[$field_id] : '';
// Hidden input field to store hidden menu itmes (from options as is, or 'Hide' checkbox clicks) upon clicking Save Changes.
echo '';
}
}