Here are some good places you cant start.
Get updated about all the good stuff!
To modify dropdown items in php, open the dropdown or multiselect attribute in widget creator, and add PHP Filter Name. For example: “mydropdown”
Then go to functions.php and put this php code:
function setMyDropdownItems($options){
$options["My Item"] = "my_item";
return($options);
}
add_filter("ue_modify_dropdown_mydropdown","setMyDropdownItems");
The “ue_modify_dropdown_”
is the prefix, then you add your filter name “mydropdown” in this case.
In result – the additional item will be added to the dropdown in Elementor:
Get instant access to tons of Elementor goodies, completely FREE!