WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Admin Expert Mode

Allow users with access to the administration section to hide inline documentation and help text, which generally target beginning users.

Filters

The plugin is further customizable via two filters. Typically, these customizations would be put into your active theme's functions.php file, or used by another plugin.

c2c_admin_expert_mode (filter)

The 'c2c_admin_expert_mode' filter allows you to dynamically determine whether the admin expert mode should be active.

Arguments:

  • $is_active (bool): Boolean indicating if admin expert mode is currently active
  • $user_login (string): Login of the current user

Example:

<?php add_filter( 'c2c_admin_expert_mode', 'aem_never_let_bob_activate', 10, 2 );
// Never let user 'bob' activate admin expert mode
function aem_never_let_bob_activate( $is_active, $user_login ) {
    if ( 'bob' == $user_login )
        return false;
    return $is_active; // Otherwise, preserve activation status for user
} ?>

c2c_admin_expert_mode_default (filter)

The 'c2c_admin_expert_mode_default' filter allows you to specify whether admin expert mode should be active for users by default or not. This filter only applies to users who visit the admin for the first time after the plugin is activated. Once a user visits the admin, their setting gets set to the default state and will no longer be affected by this filter. If you wish to affect the setting for existing users, use the 'c2c_admin_expert_mode' filter instead.

Arguments:

  • $is_active (bool): Boolean indicating if admin expert mode is active by default (default is false)

Example (only valid in WP 3.0+):

<?php // Enable admin expert mode for all users by default
add_filter( 'c2c_admin_expert_mode_default', '__return_true' );
?>

Requires: 2.8 or higher
Compatible up to: 3.8.3
Last Updated: 2013-12-28
Downloads: 3,090

Ratings

3 stars
3.8 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
100,1,1
100,1,1