add_filter( 'jet-engine-extend-form-actions/config', function() {
return array(
123 => array(
'_form_field_1' => array(
'prop' => 'post_meta',
'key' => '_meta_key',
),
'_form_field_2' => array(
'prop' => 'post_terms',
'tax' => 'taxonomy_slug',
'by' => 'name',
),
'_form_field_3' => array(
'prop' => 'post_data',
'key' => 'post_title',
'suffix' => ' -',
),
'_form_field_4' => array(
'prop' => 'post_data',
'key' => 'post_title',
'prefix' => ' ',
),
),
);
} );
Where:
add_filter( 'jet-engine-extend-form-actions/config', function() {
return array(
537 => array(
'_form_field_1' => array(
'prop' => 'post_data',
'key' => 'post_title',
'prefix' => '#',
'suffix' => ':',
),
'_form_field_2' => array(
'prop' => 'post_data',
'key' => 'post_title',
'prefix' => ' ',
'suffix' => '!',
),
),
);
} );
add_filter( 'jet-engine-extend-form-actions/config', function() {
return array(
537 => array(
'_test_field_2' => array(
'prop' => 'post_data',
'key' => 'post_title',
),
'_test_field' => array(
'prop' => 'post_data',
'key' => 'post_title',
'tax' => 'category',
'prefix' => ', ',
),
),
);
} );
add_filter( 'jet-engine-extend-form-actions/config', function() {
return array(
39 => array(
'inserted_post_id' => array(
'props' => array(
array(
'prop' => 'post_data',
'key' => 'post_title',
'prefix' => '#',
),
array(
'prop' => 'post_data',
'key' => 'post_name',
),
),
),
),
);
} );