Astra_Dynamic_CSS::is_elementor_kit_button_color_set()
Elementor Theme Style – Button Text Color compatibility. This should be looked in the future for proper solution.
Description
Reference: https://github.com/elementor/elementor/issues/10733 Reference: https://github.com/elementor/elementor/issues/10739
Return
(mixed)
Source
File: inc/class-astra-dynamic-css.php
public static function is_elementor_kit_button_color_set() {
$ele_btn_global_text_color = false;
$ele_kit_id = get_option( 'elementor_active_kit', false );
if ( false !== $ele_kit_id ) {
$ele_global_btn_data = get_post_meta( $ele_kit_id, '_elementor_page_settings' );
// Elementor Global theme style button text color fetch value from database.
$ele_btn_global_text_color = isset( $ele_global_btn_data[0]['button_text_color'] ) ? $ele_global_btn_data[0]['button_text_color'] : $ele_btn_global_text_color;
}
return $ele_btn_global_text_color;
}
Expand full source code Collapse full source code View on Trac
Changelog
| Version | Description |
|---|---|
| 2.3.3 | Introduced. |