get_autosync_value($field_group);
$choices = $this->get_autosync_choices($field_group);
if(!empty($choices)){
// autosync
acfe_render_group_setting($field_group, array(
'label' => __('Auto Sync', 'acfe'),
'instructions' => '',
'type' => 'checkbox',
'name' => 'acfe.autosync',
'value' => $value,
'choices' => $choices
));
}
}
/**
* render_sidebar_metabox_after
*
* @param $field_group
*
* @return void
*/
function render_sidebar_metabox_after($field_group){
?>
get_json_data() | $instance->get_php_data()
$method = "get_{$type}_data";
// make sure method exists
if(!method_exists(acf_get_instance('ACFE_Field_Groups'), $method)){
continue;
}
acf_enable_filter('local');
// retrieve data
$data = acf_get_instance('ACFE_Field_Groups')->$method($field_group);
acf_disable_filter('local');
$wrapper = array(
'class' => 'acfe-js-tooltip',
'title' => $data['file'],
);
if($data['class']){
$wrapper['class'] .= ' ' . $data['class'];
}
if($data['message']){
$wrapper['title'] = $data['message'];
}
$icons = array();
if($data['warning'] && $pagenow !== 'post-new.php'){
$icons[] = '';
}
ob_start();
?>
>