Skip to content

Instantly share code, notes, and snippets.

@jhned
Created June 22, 2015 13:47
Show Gist options
  • Save jhned/6f9ab2f60143d4494732 to your computer and use it in GitHub Desktop.
Save jhned/6f9ab2f60143d4494732 to your computer and use it in GitHub Desktop.
var admin_pages = [
{
"title" : "Dashboard",
"object_type" : false,
"object_name" : false,
"url" : "index.php",
"dashicon" : "dashicons-dashboard" // include dashicons for top-level admin pages.
},
{
"title" : "Posts",
"object_type" : "post_type",
"object_name" : "post",
"url" : "edit.php",
"dashicon" : "dashicons-admin-post"
},
{
"title" : "Add New Post",
"object_type" : "post_type",
"object_name" : "post",
"url" : "post-new.php",
"dashicon" : false
},
{
"title" : "Categories",
"object_type" : "taxonomy",
"object_name" : "category",
"url" : "edit-tags.php?taxonomy=category",
"dashicon" : false
},
{
"title" : "Media",
"object_type" : "post_type",
"object_name" : "attachment",
"url" : "upload.php",
"dashicon" : "dashicons-admin-media"
},
{
"title" : "Pages",
"object_type" : "post_type",
"object_name" : "page",
"url" : "edit.php?post_type=page",
"dashicon" : "dashicons-admin-page"
}
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment