Skip to content

Instantly share code, notes, and snippets.

@aimahdi
Created February 23, 2023 08:55
Show Gist options
  • Save aimahdi/90206dbd1e58776d9d3c30883ceffa00 to your computer and use it in GitHub Desktop.
Save aimahdi/90206dbd1e58776d9d3c30883ceffa00 to your computer and use it in GitHub Desktop.
add_filter('fluent_crm/theme_pref', 'changeColorPalette', 10, 1);
function changeColorPalette(){
$color_palette = [
[
"name" => __("MyBlue", "fluent-crm"),
"slug" => "myblue",
"color" => "#336699"
],
[
"name" => __("MyColor", "fluent-crm"),
"slug" => "mycolor",
"color" => "#f9f9f9"
],
[
"name" => __("Orange", "fluent-crm"),
"slug" => "orange",
"color" => "orange"
],
];
$prefs = [
'colors' => (array)$color_palette
//'font_sizes' => (array)$font_sizes
];
return $prefs;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment