Skip to content

Instantly share code, notes, and snippets.

View alfanjauhari's full-sized avatar
🍽️
Maem

Alfan Jauhari alfanjauhari

🍽️
Maem
View GitHub Profile
const data = [
{
"purchase": {
"total_sales": 300,
"sales": 0,
"discount_ratio": 0,
"set_cost_ratio": 200,
"cost_of_sales": 0,
"gross_profit": 0,
"gross_profit_ratio": 0,
@alfanjauhari
alfanjauhari / elementor.php
Last active June 12, 2024 19:18
Create Human Readable Elementor CSS Global Variables
<?php
// START
function elementor_beautify_global_colors_and_typography( $data, \Elementor\Core\Base\Document $document_instance ) {
if ( ! isset( $data['settings']['custom_colors'] ) ) {
return $data;
}
$custom_colors = $data['settings']['custom_colors'];