analogwp / analogwp-templates

Style Kits for Elementor adds a number of intuitive styling controls in the Elementor editor that allow you to apply styles globally or per page.
https://analogwp.com
27 stars 7 forks source link

Save Style Kit as should import _elementor_controls_usage meta key as well #610

Closed mauryaratan closed 1 year ago

mauryaratan commented 2 years ago

https://github.com/analogwp/analogwp-templates/blob/58dec302053586c449e507d1255392284fc284fa/inc/api/class-local.php#L462-L470

When we use the "Save Style Kit as" option in the editor, we need to import the _elementor_controls_usage meta key as well.

This could've been the issue John faced earlier with both Global/custom icons active in global controls.

Ideally, the data should be sent from editor, if its not available, then grab the meta value from the previous key that's being duplicated.

Be sure to test everything remains intact once implemented.