=' ) ) { add_action( 'admin_notices', 'template_kit_import_fail_php_version' ); } elseif ( ! version_compare( get_bloginfo( 'version' ), '4.6', '>=' ) ) { add_action( 'admin_notices', 'template_kit_import_fail_wp_version' ); } else { require ENVATO_TEMPLATE_KIT_IMPORT_DIR . 'inc/bootstrap.php'; } /** * Load Envato Elements textdomain. * * Load gettext translate for Envato Elements text domain. * * @since 0.0.2 * * @return void */ function template_kit_import_load_plugin_textdomain() { load_plugin_textdomain( 'template-kit-import' ); } /** * 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 template_kit_import_fail_php_version() { $message = sprintf( /* translators: %s: PHP version */ esc_html__( 'Template Kit Import plugin requires PHP version %1$s+, plugin is currently NOT ACTIVE. Please contact the hosting provider. WordPress recommends version %2$s.', 'template-kit-import' ), ENVATO_TEMPLATE_KIT_IMPORT_PHP_VERSION, sprintf( '%s', esc_url( 'https://wordpress.org/about/requirements/' ), esc_html__( '7.2 or above', 'template-kit-import' ) ) ); $html_message = sprintf( '
%s
', wpautop( $message ) ); echo wp_kses_post( $html_message ); } /** * Envato Elements admin notice for minimum WordPress version. * * Warning when the site doesn't have the minimum required WordPress version . * * @since 0.0.2 * * @return void */ function template_kit_import_fail_wp_version() { /* translators: %s: WordPress version */ $message = sprintf( esc_html__( 'Envato Elements requires WordPress version %s+. Because you are using an earlier version, the plugin is currently NOT ACTIVE.', 'template-kit-import' ), '4.6' ); $html_message = sprintf( '
%s
', wpautop( $message ) ); echo wp_kses_post( $html_message ); }