Skip to content

Instantly share code, notes, and snippets.

@billerickson
Created Apr 7, 2021
Embed
What would you like to do?
<?php
// -- Editor Color Palette
$primary_color = get_option( 'options_be_primary_color', '#24509A' );
add_theme_support(
'editor-color-palette',
[
[
'name' => __( 'Primary', 'cultivate_textdomain' ),
'slug' => 'primary',
'color' => $primary_color,
],
]
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment