| Server IP : 219.234.31.115 / Your IP : 216.73.217.134 Web Server : Apache System : Linux ebs-140924 5.10.0-30-amd64 #1 SMP Debian 5.10.218-1 (2024-06-01) x86_64 User : vndaystarftp ( 67432) PHP Version : 7.3.33 Disable Function : link,symlink,passthru,exec,system,shell_exec,proc_open,popen,pcntl_exec,socket_bind,stream_socket_server,pcntl_fork,pcntl_rfork MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/wwwroot/vndaystarftp/wwwroot/wp-content/plugins/acfml/classes/ |
Upload File : |
<?php
abstract class WPML_ACF_Field {
public $meta_value;
public $target_lang;
public $meta_data;
public $ids_object;
public $related_acf_field_value;
public function __construct($processed_data, $ids = null) {
$this->meta_value = $processed_data->meta_value;
$this->target_lang = $processed_data->target_lang;
$this->meta_data = $processed_data->meta_data;
$this->related_acf_field_value = $processed_data->related_acf_field_value;
$this->ids_object = $ids;
}
public function convert_ids() {
return $this->ids_object->convert($this);
}
public function has_element_with_display_translated($has_element_with_display_translated, $field) {
global $sitepress_settings;
if (isset($field['post_type']) && is_array($field['post_type'])) {
foreach ($field['post_type'] as $type) {
if (isset( $sitepress_settings['custom_posts_sync_option'][$type] ) && $sitepress_settings['custom_posts_sync_option'][$type] == 2) {
$has_element_with_display_translated = true;
break;
}
}
}
return $has_element_with_display_translated;
}
abstract function field_type();
}