/home/techb158/public_html/wp-content/plugins/kirki/app/Services
Edit: /home/techb158/public_html/wp-content/plugins/kirki/app/Services/GlobalDataService.php (1145B)
$style_block) {
if (empty($style_block['isGlobalStyle'])) {
$global_styles[$key] = array_merge($style_block, ['isGlobalStyle' => true]);
}
}
if ($session_id) {
$create_collaboration_dto = CreateCollaborationDTO::from_array([
'session_id' => $session_id,
'parent' => CollaborationParent::GLOBAL,
'parent_id' => 0,
'data' => [
'type' => CollaborationConnectionType::UPDATE_GLOBAL_STYLE,
'payload' => ['styleBlock' => $global_styles],
],
]);
(new CollaborationService())->save_action($create_collaboration_dto);
}
GlobalData::update_style_blocks($global_styles);
return $global_styles;
}
}