Restrict access to admin
Following plugin can help you better and quick : https://wordpress.org/plugins/user-role-editor/
Following plugin can help you better and quick : https://wordpress.org/plugins/user-role-editor/
That’s why the last line of the get_admin_url contains the line: return apply_filters( ‘admin_url’, $url, $path, $blog_id ); Any valid modification of the admin URL will be via that filter, so get_admin_url is the correct function to use in all cases.
For showing limited content , wordpress provides functionality of excerpt. By default excerpt will take upto 50 characters but you can change using wordpress hook. Gor better understanding you can refer http://codex.wordpress.org/Excerpt.
you can use load-{page-hook}. It is called prior to the admin screen loading. add_action( ‘load-post-new.php’, ‘post_listing_page’ ); function post_listing_page() { // ‘add new’ page, you may have to check post type.. } {page-hook} on the ‘add new’ page of any post type, it is post-new.php {page-hook} on the edit page of any post type, it … Read more
The styles for the admin bar are generally printed in the head of the site, so perhaps your CSS code is being undone as the printed styles for the admin bar appear after your included style sheet. Maybe by using the wp_head action you can stop this, placing something like this in your functions file … Read more
Unfortunately WordPress does not support third-level admin menu, so there’s no easy way to achieve the result you want. You can only remove these 4 submenu items, add a submenu item instead which will be a link to a custom admin page and display these 4 links within that page (content). Read about following hooks: … Read more
register_post_type is recommended to be used in init action hook. So, get_post_types should be used in an action after init. Hooking in init with a very high priority, 999 or greater, should also work in almost every situation but it is safer to use a later action hook. Example: add_action(‘wp_loaded’, function(){ $post_types = get_post_types( array( … Read more
In multisite installation there already is a default admin and super-admin role, and if standard capabilities are different than what you want you can modify them: A default set of capabilities is pre-assigned to each role, but other capabilites can be assigned or removed using the add_cap() and remove_cap() functions. New roles can be introduced … Read more
Atlast i found the solution, it was very silly mistake. It got nothing to do with plugin or theme or any code. It was one of the WordPress settings which i didn’t realize. Following pic shows the option to switch between excerpt view and list view of posts in wordpress. I by mistake selected excerpt … Read more
I can suggest two step: Try to deactivate all plugins (howto: this and this); Check if the core of WordPress hasn’t broken. Compare sources in directories wp-admin & wp-includes (it’s difficult, but I don’t know easy way).