%3$s',
esc_attr( $aria_label ),
esc_attr( $tooltip_id ),
esc_html( $text )
);
}
/**
* Echo info icon markup for a setting.
*
* @param string $key Setting identifier.
* @param string $text Optional override tooltip text.
* @return void
*/
public static function echo_icon( $key, $text = '' ) {
echo wp_kses(
self::render( $key, $text ),
array(
'span' => array(
'class' => true,
'role' => true,
'id' => true,
'aria-hidden' => true,
'aria-describedby' => true,
),
'button' => array(
'type' => true,
'class' => true,
'aria-label' => true,
'aria-describedby' => true,
),
)
);
}
/**
* Tooltip registry keyed by setting identifier.
*
* @return array
*/
protected static function get_tooltips() {
$tooltips = array(
// Theme settings.
'theme_preset' => __( 'Choose a color palette for wp-admin, the Command Center bar, and EdminBoost screens.', 'edminboost-admin-customization' ),
'theme_mode' => __( 'Force light or dark styling, or follow the system preference.', 'edminboost-admin-customization' ),
'theme_font' => __( 'System font stack applied to EdminBoost UI and themed wp-admin chrome. No remote fonts are loaded.', 'edminboost-admin-customization' ),
'theme_custom_colors' => __( 'Override the five core theme tokens when the Custom preset is selected.', 'edminboost-admin-customization' ),
'theme_custom_accent' => __( 'Primary accent used for buttons, highlights, and active states.', 'edminboost-admin-customization' ),
'theme_custom_surface' => __( 'Background surface color for cards, panels, and content areas.', 'edminboost-admin-customization' ),
'theme_custom_text' => __( 'Default text color on themed surfaces.', 'edminboost-admin-customization' ),
'theme_custom_topbar' => __( 'Background color for the WordPress admin bar and Command Center bar.', 'edminboost-admin-customization' ),
'theme_custom_sidebar' => __( 'Background color for the wp-admin sidebar menu.', 'edminboost-admin-customization' ),
'theme_custom_content' => __( 'Background color for main admin content areas.', 'edminboost-admin-customization' ),
'theme_admin_favicon' => __( 'Media library attachment ID used as the favicon on wp-admin screens.', 'edminboost-admin-customization' ),
'theme_font_size' => __( 'Base font size in pixels for themed admin UI. Allowed range: 12–20.', 'edminboost-admin-customization' ),
'theme_admin_bg_color' => __( 'Optional hex background color behind wp-admin content.', 'edminboost-admin-customization' ),
'theme_admin_bg_image' => __( 'Media library attachment ID for an optional admin background image.', 'edminboost-admin-customization' ),
'theme_status_colors' => __( 'Optional hex colors for post list table rows by status (draft, pending, etc.).', 'edminboost-admin-customization' ),
// Appearance — admin bar cleanup.
'hide_wp_logo' => __( 'Remove the WordPress logo and its submenu from the native admin bar.', 'edminboost-admin-customization' ),
'hide_update_counters' => __( 'Hide plugin, theme, and core update notification bubbles on the admin bar.', 'edminboost-admin-customization' ),
'hide_howdy' => __( 'Hide the “Howdy” greeting text in the admin bar profile area.', 'edminboost-admin-customization' ),
'hide_comments' => __( 'Remove the comments shortcut from the native admin bar.', 'edminboost-admin-customization' ),
'hide_new_content' => __( 'Remove the “New” content dropdown from the native admin bar.', 'edminboost-admin-customization' ),
'hide_customize' => __( 'Hide the Customize link when the Customizer is available.', 'edminboost-admin-customization' ),
// Dashboard setup wizard.
'setup_wizard_topbar' => __( 'Read-only list of admin shortcuts from your layout preset. Use the full Top Bar editor to reorder links and change icons.', 'edminboost-admin-customization' ),
'setup_wizard_topbar_editor' => __( 'Opens the Top Bar editor where you can drag discovered admin pages, add custom links, and configure each item before or after setup.', 'edminboost-admin-customization' ),
'setup_wizard_review' => __( 'Summary of your layout, theme, sidebar, and top bar choices before saving. Saving applies the preset and completes Dashboard setup.', 'edminboost-admin-customization' ),
'setup_review_sidebar' => __( 'Sidebar menu items and visibility included with the selected layout preset. Customize order, colors, and hidden items later in Menu Studio.', 'edminboost-admin-customization' ),
'setup_review_topbar' => __( 'Top bar shortcuts included with the selected layout preset. Fine-tune labels and icons in the Top Bar editor.', 'edminboost-admin-customization' ),
'layout_sidebar_preview' => __( 'Sample of top-level sidebar menu items included with the selected layout preset (not every submenu is shown).', 'edminboost-admin-customization' ),
'layout_topbar_preview' => __( 'Sample of Command Center top bar shortcuts included with the selected layout preset.', 'edminboost-admin-customization' ),
// Layout presets.
'layout_preset' => __( 'Apply a built-in or saved template that configures the top bar and left sidebar menu. Use Top Bar and Menu Studio for custom granular control.', 'edminboost-admin-customization' ),
'role_assignments' => __( 'Assign a layout preset per user role. The first matching role for a logged-in user determines their top bar layout and sidebar menu visibility.', 'edminboost-admin-customization' ),
// Top bar mapper.
'discovered_pages' => __( 'Admin menu pages scanned from your sidebar. Toggle or drag items onto the top bar canvas.', 'edminboost-admin-customization' ),
'mapper_search' => __( 'Filter the discovered list by menu or plugin name.', 'edminboost-admin-customization' ),
'custom_topbar_path' => __( 'Relative wp-admin path such as edit.php or admin.php?page=my-plugin. You may include a #fragment.', 'edminboost-admin-customization' ),
'custom_topbar_label' => __( 'Short label shown on the Command Center bar for the custom link.', 'edminboost-admin-customization' ),
'custom_topbar_anchor' => __( 'Optional page fragment to scroll to when the link opens. Can also be appended to the path above.', 'edminboost-admin-customization' ),
'topbar_canvas' => __( 'Drag to reorder icons. Click an item to configure its icon and label.', 'edminboost-admin-customization' ),
'item_icon' => __( 'Dashicon displayed on the Command Center bar for this link.', 'edminboost-admin-customization' ),
'item_label' => __( 'Override the default menu label shown on the bar.', 'edminboost-admin-customization' ),
'item_anchor' => __( 'Scroll to this section ID when the link opens.', 'edminboost-admin-customization' ),
// Menu Studio.
'menu_studio_enabled' => __( 'Apply sidebar reordering, hidden items, and styling on all wp-admin screens.', 'edminboost-admin-customization' ),
'menu_discovered' => __( 'Toggle visibility or drag admin menu items into the sidebar preview.', 'edminboost-admin-customization' ),
'menu_search' => __( 'Filter the admin menu item list.', 'edminboost-admin-customization' ),
'menu_canvas' => __( 'Drag top-level items to reorder. Expand a parent to reorder its submenus.', 'edminboost-admin-customization' ),
'menu_width' => __( 'Sidebar width in pixels (120–300).', 'edminboost-admin-customization' ),
'menu_font_size' => __( 'Sidebar menu font size in pixels (10–24).', 'edminboost-admin-customization' ),
'menu_line_height' => __( 'Line height for sidebar menu items in pixels (12–36).', 'edminboost-admin-customization' ),
'menu_letter_spacing' => __( 'Letter spacing for sidebar labels in pixels (-2 to 6).', 'edminboost-admin-customization' ),
'menu_use_colors' => __( 'Apply the custom color tokens below to the wp-admin sidebar.', 'edminboost-admin-customization' ),
'menu_color_parent_bg' => __( 'Background for top-level sidebar menu items.', 'edminboost-admin-customization' ),
'menu_color_parent_text' => __( 'Text color for top-level sidebar menu items.', 'edminboost-admin-customization' ),
'menu_color_parent_active' => __( 'Background for hovered or active top-level sidebar items.', 'edminboost-admin-customization' ),
'menu_color_submenu_bg' => __( 'Background for fly-out submenu panels.', 'edminboost-admin-customization' ),
'menu_color_submenu_text' => __( 'Text color for submenu links.', 'edminboost-admin-customization' ),
'menu_color_submenu_hover_text' => __( 'Text color for submenu links on hover or focus.', 'edminboost-admin-customization' ),
'menu_color_notification_bg' => __( 'Background for update count badges on menu items.', 'edminboost-admin-customization' ),
'menu_color_notification_text' => __( 'Text color for update count badges.', 'edminboost-admin-customization' ),
// Productivity features.
'hide_admin_notices' => __( 'Moves routine success and info notices out of view. Errors and warnings stay visible.', 'edminboost-admin-customization' ),
'hide_screen_help' => __( 'Hides the Screen Options and Help tabs in wp-admin.', 'edminboost-admin-customization' ),
'dashboard_widgets_enabled' => __( 'Remove selected core Dashboard widgets for all users. Choose which widgets to hide below.', 'edminboost-admin-customization' ),
'admin_footer_enabled' => __( 'Replace the default “Thank you for creating with WordPress” footer text in wp-admin.', 'edminboost-admin-customization' ),
'admin_footer_text' => __( 'Custom HTML-safe text shown in the admin footer when replacement is enabled.', 'edminboost-admin-customization' ),
'post_duplicator' => __( 'Adds a Duplicate row action to posts and pages in list tables.', 'edminboost-admin-customization' ),
'classic_widgets' => __( 'Restores the pre-block classic widgets screen under Appearance.', 'edminboost-admin-customization' ),
'menu_duplicator' => __( 'Adds a duplicate action when editing navigation menus.', 'edminboost-admin-customization' ),
'custom_admin_columns' => __( 'Adds optional columns to the Posts and Pages list tables in wp-admin. Enable the feature, then configure each post type below. New columns appear immediately after the Title column.', 'edminboost-admin-customization' ),
'column_thumbnail' => __( 'Shows a 40×40 featured image thumbnail after the Title column. Posts without a featured image leave the cell empty.', 'edminboost-admin-customization' ),
'column_id' => __( 'Shows the numeric post ID after the Title column. Useful for shortcodes, support tickets, or database lookups.', 'edminboost-admin-customization' ),
'column_meta_key' => __( 'Shows the stored value for one post meta key after the Title column. Enter the exact meta key name (for example, _price). Only the first value is shown; serialized or array data may not display cleanly.', 'edminboost-admin-customization' ),
'post_order' => __( 'Enables drag-and-drop ordering via an Order column on supported post types.', 'edminboost-admin-customization' ),
// Security features.
'security_hardening_note' => __( 'These options may affect plugins or themes that rely on XML-RPC, feeds, or public REST access.', 'edminboost-admin-customization' ),
'disable_xmlrpc' => __( 'Blocks XML-RPC requests. Required by some remote apps and Jetpack features.', 'edminboost-admin-customization' ),
'disable_feeds' => __( 'Disables RSS/Atom feeds and redirects feed URLs to the home page.', 'edminboost-admin-customization' ),
'rest_hide_head' => __( 'Removes the REST API discovery link tag from HTML output.', 'edminboost-admin-customization' ),
'rest_disable_guests' => __( 'Returns an authentication error for unauthenticated REST API requests.', 'edminboost-admin-customization' ),
'disable_comments' => __( 'Turns off comments and comment UI for the selected public post types.', 'edminboost-admin-customization' ),
// Performance features.
'disable_emojis' => __( 'Removes WordPress emoji detection scripts and related DNS prefetch hints.', 'edminboost-admin-customization' ),
'disable_emojis_scope' => __( 'Limit emoji removal to wp-admin, the front end, or both.', 'edminboost-admin-customization' ),
'remove_asset_versions' => __( 'Strips ?ver= query strings from enqueued script and style URLs. Can affect cache busting.', 'edminboost-admin-customization' ),
'remove_dashicons_frontend' => __( 'Dequeues Dashicons for visitors who are not logged in.', 'edminboost-admin-customization' ),
'disable_embeds' => __( 'Disables oEmbed discovery, embed rewrite rules, and the wp-embed script.', 'edminboost-admin-customization' ),
'heartbeat_control' => __( 'Slow or disable the Heartbeat API on admin screens, the post editor, or the front end.', 'edminboost-admin-customization' ),
'heartbeat_admin' => __( 'Applies to wp-admin screens outside the post editor, such as list tables and settings pages. Default keeps the standard ~15 second interval. Slow reduces polling to 60 seconds. Disable removes the Heartbeat script entirely.', 'edminboost-admin-customization' ),
'heartbeat_editor' => __( 'Applies to the post and page editor (post.php and post-new.php). WordPress uses Heartbeat for autosave, post locking, and revision checks. Slow reduces polling to 60 seconds. Disable may affect autosave and collaborative editing.', 'edminboost-admin-customization' ),
'heartbeat_frontend' => __( 'Applies when logged-in users browse the public site. WordPress uses Heartbeat for session checks and admin bar updates. Default keeps the standard interval. Slow reduces polling to 60 seconds. Disable removes the script on the front end.', 'edminboost-admin-customization' ),
// Settings page.
'enabled' => __( 'Master switch for EdminBoost features, the Command Center bar, Menu Studio, and visual theme.', 'edminboost-admin-customization' ),
'theme_extras' => __( 'Optional admin typography, background, favicon, and post list status colors.', 'edminboost-admin-customization' ),
);
/**
* Filter setting help tooltip registry.
*
* Premium package merges licensed-only strings via EDMINBOOST_Setting_Help_Pro.
*
* @param array $tooltips Tooltip copy keyed by setting ID.
*/
return apply_filters( 'edminboost_setting_help_tooltips', $tooltips );
}
}