=' ) ) { add_action( 'admin_notices', 'envato_elements_fail_php_version' ); } elseif ( ! version_compare( get_bloginfo( 'version' ), '4.6', '>=' ) ) { add_action( 'admin_notices', 'envato_elements_fail_wp_version' ); } else { require ENVATO_ELEMENTS_DIR . 'inc/bootstrap.php'; } /** * Load Envato Elements textdomain. * * Load gettext translate for Envato Elements text domain. * * @since 0.0.2 * * @return void */ function envato_elements_load_plugin_textdomain() { load_plugin_textdomain( 'envato-elements' ); } /** * Envato Elements admin notice for minimum PHP version. * * Warning when the site doesn't have the minimum required PHP version. * * @since 0.0.2 * * @return void */ function envato_elements_fail_php_version() { $message = sprintf( /* translators: %s: PHP version */ esc_html__( 'Envato Elements requires PHP version %s+, plugin is currently NOT ACTIVE. Please contact the hosting provider. WordPress recommends version %s.', 'envato-elements' ), ENVATO_ELEMENTS_PHP_VERSION, sprintf( '%s', esc_url( 'https://wordpress.org/about/requirements/' ), esc_html__( '7.2 or above', 'envato-elements' ) ) ); $html_message = sprintf( '