/
var
/
www
/
turismonew
/
wp-content
/
plugins
/
custom-page-templates
/
integrations
/
Upload File
HOME
<?php if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly if ( ! class_exists( 'cptemplates_integrate_acf' ) ) : final class cptemplates_integrate_acf { /** * Plugin instance * * @since 3.0.41 * @var object $instance */ protected static $instance; /** * Flag if instance has been initialized * * @since 3.0.41 * @var boolean $initialized */ private $initialized = false; /** * __construct * * Initialize cptemplates_integrate_acf * * @type function * @date 21/06/19 * @since 3.0.41 * * @param N/A * @return N/A */ private function __construct() { // Can be initialized just once if ( $this->initialized ) return; $this->initialized = true; cptemplates_include_all( 'integrations/acf' ); } /** * instance * * Create or retrieve instance. Singleton pattern * * @type function * @date 21/06/19 * @since 3.0.41 * * @static * * @param N/A * @return (object) cptemplates_integrate_acf instance */ public static function instance() { return self::$instance ? self::$instance : self::$instance = new self(); } } /** * cptemplates_integrate_acf * * The main function responsible for returning cptemplates_integrate_acf object * * @type function * @date 21/06/19 * @since 3.0.41 * * @param N/A * @return (object) cptemplates_integrate_acf instance */ function cptemplates_integrate_acf() { return cptemplates_integrate_acf::instance(); } // initialize cptemplates_integrate_acf(); endif; // class_exists check ?>