/** * Add the meta boxes for this section * * @since 1.0.0 * * @param string $type * @param WP_User $user */ public function add_meta_boxes($type = '', $user = null) { // Allow third party plugins to add metaboxes parent::add_meta_boxes($type, $user); // Primary Site add_meta_box('primary-site', _x('Primary Site', 'users user-admin edit screen', 'wp-user-profiles'), 'wp_user_profiles_primary_site_metabox', $type, 'normal', 'high', $user); // Sites add_meta_box('sites', _x('Sites', 'users user-admin edit screen', 'wp-user-profiles'), 'wp_user_profiles_sites_metabox', $type, 'normal', 'core', $user); }
/** * Add the meta boxes for this section * * @since 0.2.0 * * @param string $type * @param WP_User $user */ public function add_meta_boxes($type = '', $user = null) { // Allow third party plugins to add metaboxes parent::add_meta_boxes($type, $user); // Roles add_meta_box('roles', _x('Roles', 'users user-admin edit screen', 'wp-user-profiles'), 'wp_user_profiles_roles_metabox', $type, 'normal', 'high', $user); // Additional Capabilities add_meta_box('options', _x('Additional Capabilities', 'users user-admin edit screen', 'wp-user-profiles'), 'wp_user_profiles_additional_capabilities_metabox', $type, 'normal', 'core', $user); }
/** * Add the meta boxes for this section * * @since 0.2.0 * * @param string $type * @param WP_User $user */ public function add_meta_boxes($type = '', $user = null) { // Allow third party plugins to add metaboxes parent::add_meta_boxes($type, $user); // Color schemes (only if available) if (count($GLOBALS['_wp_admin_css_colors']) && has_action('admin_color_scheme_picker')) { add_meta_box('colors', _x('Color Scheme', 'users user-admin edit screen', 'wp-user-profiles'), 'wp_user_profiles_color_scheme_metabox', $type, 'normal', 'high', $user); } // Color schemes add_meta_box('options', _x('Personal Options', 'users user-admin edit screen', 'wp-user-profiles'), 'wp_user_profiles_personal_options_metabox', $type, 'normal', 'core', $user); }
/** * Add the meta boxes for this section * * @since 0.2.0 * * @param string $type * @param WP_User $user */ public function add_meta_boxes($type = '', $user = null) { // Allow third party plugins to add metaboxes parent::add_meta_boxes($type, $user); // Email add_meta_box('email', _x('Email', 'users user-admin edit screen', 'wp-user-profiles'), 'wp_user_profiles_email_metabox', $type, 'normal', 'high', $user); // Password add_meta_box('password', _x('Password', 'users user-admin edit screen', 'wp-user-profiles'), 'wp_user_profiles_password_metabox', $type, 'normal', 'core', $user); // Sessions add_meta_box('sessions', _x('Sessions', 'users user-admin edit screen', 'wp-user-profiles'), 'wp_user_profiles_session_metabox', $type, 'normal', 'low', $user); }
/** * Add the meta boxes for this section * * @since 0.2.0 * * @param string $type * @param object $user */ public function add_meta_boxes($type = '', $user = null) { // Allow third party plugins to add metaboxes parent::add_meta_boxes($type, $user); // Name add_meta_box('name', _x('Name', 'users user-admin edit screen', 'wp-user-profiles'), 'wp_user_profiles_name_metabox', $type, 'normal', 'high', $user); // About add_meta_box('about', _x('About', 'users user-admin edit screen', 'wp-user-profiles'), 'wp_user_profiles_about_metabox', $type, 'normal', 'core', $user); // Contact, if methods are registered if (wp_get_user_contact_methods($user)) { add_meta_box('contact', _x('Contact', 'users user-admin edit screen', 'wp-user-profiles'), 'wp_user_profiles_contact_metabox', $type, 'normal', 'low', $user); } }