=' ) ) {
add_action( 'admin_notices', 'elementor_fail_php_version' );
} elseif ( ! version_compare( get_bloginfo( 'version' ), '6.0', '>=' ) ) {
add_action( 'admin_notices', 'elementor_fail_wp_version' );
} else {
require ELEMENTOR_PATH . 'includes/plugin.php';
}
/**
* Elementor admin notice for minimum PHP version.
*
* Warning when the site doesn't have the minimum required PHP version.
*
* @since 1.0.0
*
* @return void
*/
function elementor_fail_php_version() {
$html_message = sprintf(
'
',
esc_html__( 'Elementor isn’t running because PHP is outdated.', 'elementor' ),
sprintf(
/* translators: %s: PHP version. */
esc_html__( 'Update to version %s and get back to creating!', 'elementor' ),
'7.4'
),
esc_html__( 'Show me how', 'elementor' )
);
echo wp_kses_post( $html_message );
}
/**
* Elementor admin notice for minimum WordPress version.
*
* Warning when the site doesn't have the minimum required WordPress version.
*
* @since 1.5.0
*
* @return void
*/
function elementor_fail_wp_version() {
$html_message = sprintf(
'',
esc_html__( 'Elementor isn’t running because WordPress is outdated.', 'elementor' ),
sprintf(
/* translators: %s: WordPress version. */
esc_html__( 'Update to version %s and get back to creating!', 'elementor' ),
'6.0'
),
esc_html__( 'Show me how', 'elementor' )
);
echo wp_kses_post( $html_message );
}