WPML_ACF_Requirements = new WPML_ACF_Requirements(); return $this->init_duplicated_post( $wpdb ); } private function init_duplicated_post( $wpdb ) { $duplicated_post = new WPML_ACF_Duplicated_Post( $wpdb ); return new WPML_ACF_Worker( $duplicated_post ); } public function init_acf_xliff() { if ( defined( 'WPML_ACF_XLIFF_SUPPORT' ) && WPML_ACF_XLIFF_SUPPORT ) { if ( is_admin() ) { if ( class_exists( 'acf' ) ) { global $wpdb, $sitepress; $WPML_ACF_Xliff = new WPML_ACF_Xliff( $wpdb, $sitepress ); $WPML_ACF_Xliff->init_hooks(); } } } } public function init_acf_pro() { if ( class_exists( 'acf' ) ) { $WPML_ACF_Pro = new WPML_ACF_Pro(); } } }