Created
February 23, 2023 08:55
-
-
Save aimahdi/90206dbd1e58776d9d3c30883ceffa00 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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