Action: tcp product metabox custom fields

Description

The “tcp_product_metabox_custom_fields” action is used to add html in the Products Custom Box, usually to add more fields

Example

<?php
function tcp_product_metabox_custom_fields( $post_id ) {?>
<tr valign="top">
 <th scope="row"><label for="other_field"><?php _e( 'other_field label', 'tcp' );?>:</label></th>
 <td><input name="other_field" id="other_field" value="<?php echo tcp_get_the_meta( 'other_field', $post_id );?>" type="text" style="width:25em" /></td>
 </tr><?php
}

add_action( 'tcp_product_metabox_custom_fields', 'tcp_product_metabox_custom_fields' );

Change Log

Since 1.0.9

Related

tcp_product_metabox_custom_fields_after_price | tcp_product_metabox_save_custom_fields