at path:
ROOT
/
wp-content
/
plugins
/
tutor
/
includes
/
country.php
run:
R
W
Run
droip
DIR
2026-04-14 05:34:27
R
W
Run
theme-compatibility
DIR
2026-04-14 05:34:26
R
W
Run
country.php
1 KB
2026-04-14 05:34:27
R
W
Run
Delete
Rename
ecommerce-functions.php
3.76 KB
2026-04-14 05:34:27
R
W
Run
Delete
Rename
tinymce_translate.php
1.38 KB
2026-04-14 05:34:27
R
W
Run
Delete
Rename
translate-text.php
6.72 KB
2026-04-14 05:34:27
R
W
Run
Delete
Rename
tutor-general-functions.php
53.21 KB
2026-04-14 05:34:27
R
W
Run
Delete
Rename
tutor-template-functions.php
40.36 KB
2026-04-14 05:34:27
R
W
Run
Delete
Rename
tutor-template-hook.php
907 By
2026-04-14 05:34:27
R
W
Run
Delete
Rename
error_log
up
📄
country.php
Save
<?php /** * Country List * * @package Tutor\Includes * @author Themeum <support@themeum.com> * @link https=>//themeum.com * @since 3.0.0 */ if ( ! defined( 'ABSPATH' ) ) { exit; } if ( ! function_exists( 'tutor_get_country_list' ) ) { /** * Get country list. * * @since 3.0.0 * * @return array */ function tutor_get_country_list() { $file = trailingslashit( tutor()->path ) . 'assets/json/countries.json'; if ( ! file_exists( $file ) ) { return array(); } $data = file_get_contents( $file ); return json_decode( $data, true ); } } if ( ! function_exists( 'tutor_get_country_info_by_name' ) ) { /** * Get country info by country name * * @since 3.0.0 * * @param string $country_name country name. * * @return array|null */ function tutor_get_country_info_by_name( $country_name ) { $countries = tutor_get_country_list(); foreach ( $countries as $country ) { if ( strtolower( $country['name'] ) === strtolower( $country_name ) ) { return $country; } } } }