As far as I understood this right, you want to disable the possibility to reach any other side aside from the dashboard.
Well, then here’s a short plugin for you:
<?php
! defined( 'ABSPATH' ) AND exit;
/* Plugin Name: (#45989) »kaiser« Allow Dashboard only access */
function wpse45989_access_dashboard_only()
{
if (
! isset( get_current_screen()->id )
OR 'dashboard' !== get_current_screen()->id
)
{
// Lets limit this to only specific user roles
if ( current_user_can( 'ROLE_NAME_HERE' ) )
exit( wp_redirect( admin_url() ) );
}
}
add_action( 'current_screen', 'wpse45989_access_dashboard_only', 100 );
Related Posts:
- How to remove a column from the Posts page
- Update post counts (published, draft, unattached) in admin interface
- How to display by default only published posts/pages in the admin area?
- Set Default Listing “View” in Admin
- display all posts in wordpress admin
- Sends out email to admin
- Can I force a metabox to be in one column?
- Add a new post status in the post progression
- Modifying admin sidebar contents to show pending posts indicator
- Any way to create a revision of a post ONLY with a new button in the Meta Box?
- using slug instead of ID in admin edit post url
- How to Load Scripts and CSS for Admins Only When Editing or Adding Posts
- Add “Post Options” for new wordpress post
- Post Admin – Filter by posts without tags
- Add javascript when post is published
- Why does the_date work in the first custom column, but not in the second, in a series of customized Posts columns?
- Add link on the top menu of the post table?
- Add a special filter link to All Posts in admin
- which action to hook to in order to perform post-publish action
- Make “Post published. View post” Open in a New Tab
- Overview with latest edited posts and pages
- Hiding by default specific post status on backend list?
- Custom colors for post rows based on post meta value
- How to add an admin function only to posts, not pages?
- prevent showing posts of an specific category in admin posts section
- Remove whitespace at the end of posts?
- Allow role to delete posts but block him the wp-admin
- Is there a way to change the color of a row in Post Administration based on the type of post?
- Add filter-by-tag in the all posts admin console page
- How to get a nofication when post submitted
- How do I add a custom body class to the admin area of a page?
- Adding a text link under the post title in the lists of posts
- Is it possible to change the admin posts per page view?
- Remove the Edit button in posts for permalinks on certain user roles? WP 3.3
- Change default Posts page
- Show info to author only
- Disable inline_edit() on edit.php
- Change target of view link in admin
- Prevent additional top level categories but allow more children
- WP Admin register taxonomy and post type performance
- Publish post’s date is set to Nov 30 -0001
- Admin – create custom post status and display above table
- plugin to post from admin to flickr [closed]
- All Posts admin screen – show time underneath the ‘Date’?
- Get post ID in post/page edit area
- How to remove specific tag from multiple posts?
- How to detect when admin user is on the All Posts page?
- All posts display default index.html
- How can I add a box to edit Order on a regular post?
- Filtering posts on Post Administration Page by Week Number instead of by Month
- How to add the time of a post to the list of posts on the administration page?
- Is there a way to add the list of recent posts into the admin sub menu on hover?
- How to add convenient buttons for new custom post statuses
- I don’t want the complete article to show on homepage
- After 3.5.1. upgrade, posts appearing on Site yet *NOT* in WP admin!
- Send email to admin with post author
- In admin panel, use a form to create a post?
- Add checkbox in admin post list – show checked post in widget
- Cannot create new posts or upload images using media manager
- Ignore posts content in the posts queries for internal linking
- How do I scope out why I have two “posts” menus in an admin?
- Put page on Archived statut after end of publication date
- Add view to admin menu to filter for specific criteria ( If post is child of specific Parent )
- problem with admin panel
- Ajax the create and edit post form into lightbox and get results
- Hide Admin posts & pages in Dashboard
- Creating widget – ask for selecting a post in the admin panel
- issue in wordpress auto delete post and redirect to another 1
- How to change the publishing date of each posts?
- Is possible to create a custom link that creates a post that’s already categorized?
- Why is $_POST Empty in Profile Edit Admin?
- Display the popular tags by default in the backend post edit page (without having to click on the link that displays them) [closed]
- WordPress Admin Tables in Post View
- Can I hide only one category from admin post list?
- Choose options via url
- Admin moderates ALL comments (including post author)
- Posts in Admin only display 1 Post instead of all
- How to remove a specific script from bulk wordpress posts and images description?
- Post Format Status [closed]
- WordPress: How to get the current logged in author page URL?
- How to disable drafts?
- Why can posts never have a number as the link?
- How to load post content on index page using ajax when post title in sidebar is clicked
- Importing data from spreadsheet into wordpress DB, along with custom taxonomies and their terms
- Append Text to $post->post_excerpt
- Get permalink of post that an attachment is linked to
- SQL query to retrieve all the records that have not indicated category
- How should I add links to other pages/posts from my post?
- Show only one page link in content pagination
- Exclude current custom post on single post
- Echo Text If User Is Logged in But NOT the Author of post
- Where to insert the other site image url for our wordpress post
- Set post title font size automatically according to number of words in post title
- How to make an image appear as a thumbnail in the blog post?
- How can i take all ids from untrash_post action?
- Not display post meta if empty
- Adding div to WordPress page content
- How to display custom content in post with category XXX
- Filter/Sort Post Form On Taxonomy page
- Display post by select it from a dropdown menu