method_get_breakpoint_colors()
method_get_breakpoint_colors()
Gets the editor UI accent colors for each responsive tab.
Description
Returns per‑breakpoint colors used to visually distinguish mobile, tablet, and wide controls in the block editor. Falls back to WordPress default blue (#007CBA) if custom colors are disabled.
Parameters
None.
Return
(array) Associative array of breakpoint => hex_color.
PHP
array(
'mobile' => '#865EBF',
'tablet' => '#D94A64',
'wide' => '#F28729',
)Source
File: lib/helper-functions.php
Notes
- Colors are configured in
METHOD_OPTIONS['breakpoint-colors']. - Used by
myplugin_inline_editor_styles()to color range tracks, toggles, and tab indicators.
Changelog
| Version | Description |
|---|---|
| 2.0.0 | Introduced. |