Set of plugins to control the Admin UI

I have found Role Scopper to be a powerful role management tool. It’s a PAIN to figure out, but once it clicks, it’s genius. There’s a new, paid version (not terribly expensive), but I have not tried it, and can’t speak to it’s usefulness. @brasofilo, thanks for the good information. I will incorporate some of … Read more

How to select a page within admin?

add_action( ‘add_meta_boxes_page’, ‘wpse_57924_remove_editor’ ); function wpse_57924_remove_editor( $post ) { if ( $post->ID == get_option( ‘page_on_front’ ) /* or hardcode ID if not front page */ ) remove_post_type_support( ‘page’, ‘editor’ ); }

Associating custom submenu item with post type of top level menu item

You need the information about the current post type in your callback function that renders the submenu page output. And at this point there is a lot of information ready: add_action( ‘admin_menu’, ‘wpse_60730_demo_submenu’ ); /** * Register sub menu pages. * * Note that get_current_screen() is still NULL now. * * @wp-hook admin_menu * @return … Read more

Why is this Ajax not working?

When you load a php file directly via an ajax request (UncheckPackageThemeHelper.php) it’s loaded outside the context of WordPress, so no WordPress core functions are available. All WordPress ajax requests should be routed through admin-ajax.php. You can print the URL with the function admin_url: admin_url( ‘admin-ajax.php’ ) When admin-ajax.php is loaded, WordPress is bootstrapped, so … Read more

Link to post author but exclude administrator (on single.php)

You can use the wordpress function user_can that accepts as arguments the id of the user and a string representing a capability or a role name (‘administrator’ in your case ) and returns a boolean value. http://codex.wordpress.org/Function_Reference/user_can Referred to your code you can try this <?php if( !user_can( get_the_author_meta( ‘ID’ ), ‘administrator’ ) ): ?> … Read more