Snippets

Visser Labs Exporting custom meta

Created by Michael Visser

File functions.php Added

  • Ignore whitespace
  • Hide word diff
+<?php
+function custom_woo_ce_extend_product_fields( $fields ) {
+$fields[] = array(
+'name' => 'my_custom_field',
+'label' => __( 'My Custom Field', 'woo_ce' )
+);
+return $fields;
+}
+add_filters( 'woo_ce_product_fields', 'custom_woo_ce_extend_product_fields' );
+?>