Astra_Dynamic_CSS::elementor_default_color_font_setting()
Check if Elementor – Disable Default Colors or Disable Default Fonts checked or unchecked.
Description
Return
(mixed) String if any of the settings are enabled. False if no settings are enabled.
Source
File: inc/class-astra-dynamic-css.php
public static function elementor_default_color_font_setting() { $ele_default_color_setting = get_option( 'elementor_disable_color_schemes' ); $ele_default_typo_setting = get_option( 'elementor_disable_typography_schemes' ); if ( ( 'yes' === $ele_default_color_setting && 'yes' === $ele_default_typo_setting ) || ( false === self::is_elementor_default_color_font_comp() ) ) { return 'color-typo'; } if ( 'yes' === $ele_default_color_setting ) { return 'color'; } if ( 'yes' === $ele_default_typo_setting ) { return 'typo'; } return false; }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
2.3.3 | Introduced. |