settings = array( 'version' => '1.0.5', 'url' => GMM_PLUGIN_URL, 'path' => GMM_PLUGIN_PATH, ); // include field add_action( 'acf/include_field_types', array( $this, 'include_field' ) ); // v5 } /* * include_field * * This function will include the field type class * * @type function * @date 17/02/2016 * @since 1.0.0 * * @param $version (int) major ACF version. Defaults to false * @return void */ function include_field( $version = false ) { // support empty $version if ( ! $version ) { $version = 5; } // load textdomain load_plugin_textdomain( GMM_TEXTDOMAIN, false, plugin_basename( dirname( __FILE__ ) ) . '/lang' ); // include include_once( 'fields/class-gmm-acf-field-google-map-multi-v' . $version . '.php' ); } } // initialize new gmm_acf_plugin_google_map_multi(); }