template/wordpress/functions.php in edge_framework-2.0.0.a vs template/wordpress/functions.php in edge_framework-2.0.0

- old
+ new

@@ -1,26 +1,22 @@ <?php include "code/main.php"; -/* ------------------------------------------- - WordEdge - - Requirement: Wordpress 3.8 and PHP 5.3 -------------------------------------------- */ +/* ------------------------- +Req: WP 4.1 and PHP 5.3 +------------------------- */ // THEME SUPPORT - add_theme_support("post-thumbnails"); add_theme_support("menus"); // CUSTOM POST TYPE -// post-type-name, <icon>, <taxonomy-name> +// FORMAT : type-name, <icon>, <taxonomy-name> +// EXAMPLE : add_post_type("Product", "cart", "Brand"); -add_post_type("Product", "cart", "Brand"); +// THUMBNAIL SIZE +// FORMAT : add_image_size("thumbnail", <width>, <height>, <crop or not>); +// EXAMPLE : add_image_size("thumbnail", 200, 150, true); -/* Remove Unnecessary ADMIN SIDEBAR - - Use the slug -*/ -function remove_menu_items() { - $items = array( - "upload.php", - ); - foreach($items as $item) { remove_menu_page($item); } +// Remove Unnecessary ADMIN SIDEBAR +function get_removed_list() { + return array("Comments", "Media"); } \ No newline at end of file