$value ) { if ( ! is_string( $key ) ) { continue; } $key = str_replace( array( '--bs-', '--' ), '', $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. * * @since 1.0.0 * * @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 ); } }