'true_false',
'name' => 'is_active',
'key' => 'is_active',
'prefix' => $prefix,
'value' => $is_email_active,
'label' => __( 'Active', 'advanced-members' ),
'instructions' => $notification['description'],
'default' => true,
'ui' => 1,//($force_active ? 0 : 1),
'wrapper' => [
'class' => ($force_active ? 'amem-email-active amem-readonly' : 'amem-email-active'),
],
),
'div'
);
acf_render_field_wrap(
array(
'type' => 'text',
'name' => 'subject',
'key' => 'subject',
'prefix' => $prefix,
'value' => $notification['subject'],
'label' => __( 'Subject Line', 'advanced-members' ),
'instructions' => __( "This is the subject line of the e-mail", 'advanced-members' ),
// 'conditions' => array(
// 'field' => 'is_active',
// 'operator' => '==',
// 'value' => 1,
// ),
),
'div',
'field'
);
acf_render_field_wrap(
array(
'type' => 'wysiwyg',
'media_upload' => false,
'name' => 'body',
'key' => 'body',
'prefix' => $prefix,
'value' => format_to_edit($notification['body'], true),
'label' => __( 'Message Body', 'advanced-members' ),
'instructions' => __( "This is the content of the e-mail", 'advanced-members' ),
// 'conditions' => array(
// 'field' => 'is_active',
// 'operator' => '==',
// 'value' => 1,
// ),
),
'div',
'field'
);
?>