Support

Account

Home Forums Add-ons Repeater Field add (custom fields) in WOOCOMMERCE tabs

Unread

add (custom fields) in WOOCOMMERCE tabs

  • Hello, I’ve done a lot of research, but I couldn’t find a way to add 2 custom fields in woocommerce tabs, does anyone know the code I can add in (functions.php)?

    if( function_exists('acf_add_local_field_group') ):
    
    acf_add_local_field_group(array(
    	'key' => 'group_60e453ae778e4',
    	'title' => 'Informações extras',
    	'fields' => array(
    		array(
    			'key' => 'field_60e4542928613',
    			'label' => 'Medidas',
    			'name' => 'medidas',
    			'type' => 'wysiwyg',
    			'instructions' => '',
    			'required' => 0,
    			'conditional_logic' => 0,
    			'wrapper' => array(
    				'width' => '',
    				'class' => '',
    				'id' => '',
    			),
    			'default_value' => '',
    			'tabs' => 'all',
    			'toolbar' => 'full',
    			'media_upload' => 1,
    			'delay' => 0,
    		),
    		array(
    			'key' => 'field_60e4543628614',
    			'label' => 'Troca e Devolução',
    			'name' => 'troca',
    			'type' => 'wysiwyg',
    			'instructions' => '',
    			'required' => 0,
    			'conditional_logic' => 0,
    			'wrapper' => array(
    				'width' => '',
    				'class' => '',
    				'id' => '',
    			),
    			'tabs' => 'all',
    			'toolbar' => 'full',
    			'media_upload' => 1,
    			'default_value' => '',
    			'delay' => 0,
    		),
    	),
    	'location' => array(
    		array(
    			array(
    				'param' => 'post_type',
    				'operator' => '==',
    				'value' => 'product',
    			),
    		),
    	),
    	'menu_order' => 0,
    	'position' => 'normal',
    	'style' => 'default',
    	'label_placement' => 'top',
    	'instruction_placement' => 'label',
    	'hide_on_screen' => '',
    	'active' => true,
    	'description' => '',
    ));
    
    endif;
Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.