Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erropix/cdd42bfc50aa6d40f8d56ed64e6d175d to your computer and use it in GitHub Desktop.
Save erropix/cdd42bfc50aa6d40f8d56ed64e6d175d to your computer and use it in GitHub Desktop.
<?php
add_action("oxygen_after_add_components", function () {
global $oxygen_vsb_components;
$div_component = $oxygen_vsb_components["div_block"];
$div_params = &$div_component->options["params"];
foreach ($div_params as $i => $param) {
if ($param["param_name"] == "tag") {
$div_params[$i]["value"] = array_merge($param["value"], [
"ul" => "ul",
"li" => "li",
]);
break;
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment