| @@ -637,8 +637,12 @@ | ||
| 637 | 637 | public static function has_pro() { |
| 638 | 638 | return defined( 'ELEMENTOR_PRO_VERSION' ); |
| 639 | 639 | } |
| 640 | 640 | |
| 641 | + public static function is_license_active(): bool { | |
| 642 | + return class_exists( '\ElementorPro\License\API' ) && \ElementorPro\License\API::is_license_active(); | |
| 643 | + } | |
| 644 | + | |
| 641 | 645 | public static function is_pro_installed_and_not_active(): bool { |
| 642 | 646 | if ( ! function_exists( 'get_plugins' ) ) { |
| 643 | 647 | require_once ABSPATH . 'wp-admin/includes/plugin.php'; |
| 644 | 648 | } |
| @@ -833,8 +837,14 @@ | ||
| 833 | 837 | } |
| 834 | 838 | } |
| 835 | 839 | |
| 836 | 840 | echo wp_kses( $text, $allowed_html ); |
| 841 | + } | |
| 842 | + | |
| 843 | + public static function kses_post_deep( $data ) { | |
| 844 | + return map_deep( $data, function ( $value ) { | |
| 845 | + return is_string( $value ) ? wp_kses_post( $value ) : $value; | |
| 846 | + } ); | |
| 837 | 847 | } |
| 838 | 848 | |
| 839 | 849 | public static function is_elementor_path( $path ) { |
| 840 | 850 | $path = wp_normalize_path( $path ); |