$value ) { $key = ltrim( $key, '--' ); $color_palette[] = array( 'name' => $key, 'slug' => $key, 'color' => $value, ); } } /** * Filters the default bootstrap color palette so it can be overriden by child themes or plugins when we add theme support for editor-color-palette. This array can also be generated via gulp. * * @param array $color_palette An array of color options for the editor-color-palette setting. */ return apply_filters( 'understrap_theme_editor_color_palette', $color_palette ); } }