邮件主题中的ACF字段

时间:2019-01-31 15:38:43

标签: wordpress woocommerce advanced-custom-fields

我想知道是否有可能以显示邮件主题发送ACF值给管理员,当一个新的秩序是建立。 我有一个这样的领域:

 if( function_exists('acf_add_local_field_group') ):

acf_add_local_field_group(array(
'key' => 'group_5c49b50b45a52',
'title' => 'Nom du chantier',
'fields' => array(
    array(
        'key' => 'field_5c49b5127665d',
        'label' => 'Chantier sélection',
        'name' => 'chantier_selection',
        'type' => 'post_object',
        'instructions' => '',
        'required' => 0,
        'conditional_logic' => 0,
        'wrapper' => array(
            'width' => '',
            'class' => '',
            'id' => '',
        ),
        'show_fields_options' => array(
            0 => 'order',
            1 => 'email',
        ),
        'post_type' => array(
            0 => 'chantier',
        ),
        'taxonomy' => '',
        'allow_null' => 0,
        'multiple' => 0,
        'return_format' => 'object',
        'ui' => 1,
    ),
),
'location' => array(
    array(
        array(
            'param' => 'checkout',
            'operator' => '==',
            'value' => 'wc-before-billing-form',
        ),
    ),
),
'menu_order' => 0,
'position' => 'normal',
'style' => 'default',
'label_placement' => 'top',
'instruction_placement' => 'label',
'hide_on_screen' => '',
'active' => 1,
'description' => '',
));

endif;

于是结账页面上,客户可以选择自己的“CHANTIER”。我选择了带邮件的show_fields_options,但是我的ACF值出现在邮件“新订单”的内容中,并且我希望它出现在邮件对象中。 不知道有没有可能 你能帮我吗?

0 个答案:

没有答案
相关问题