File: /storage/v4513/ivenusin/public_html/wp-content/plugins/acf-country-2.0/acf-country.php
<?php
/*
Plugin Name: Advanced Custom Fields: ACF Country
Plugin URI: https://github.com/nlemoine/acf-country
Description: Display a select field of all countries, in any language.
Version: 2.0.0
Author: Nicolas Lemoine
Author URI: https://helloni.co/
GitHub Plugin URI: https://github.com/nlemoine/acf-country
License: MIT License
License URI: http://opensource.org/licenses/MIT
*/
namespace HelloNico\ACF;
/**
* Return if Field Loader already exists.
*/
if ( class_exists( 'FieldLoader' ) ) {
return;
}
/**
* Field Loader
*/
class FieldLoader {
/**
* Constructor
*/
public function __construct() {
$this->settings = [
'version' => '2.0.0',
'url' => plugin_dir_url( __FILE__ ),
'path' => plugin_dir_path( __FILE__ ),
];
load_plugin_textdomain( 'acf-country', false, plugin_basename( dirname( __FILE__ ) ) . '/lang' );
add_action( 'acf/include_field_types', [ $this, 'fields' ] );
add_action( 'acf/register_fields', [ $this, 'fields' ] );
}
/**
* Include our ACF Field Types
*
* @param integer $version
* @return void
*/
public function fields( $version = 5 ) {
include_once 'fields/acf-country.php';
}
}
new FieldLoader();