How to add custom fields is described here.
hi @tijimensmit,
Thank you for your quick replay. It’s possible to set the custom fields under the location tab other than additional information tab.
Please let me know, if any solutions available.
Thanks
Replace the first line in the code ( $meta_fields[__( ‘Additional Information’, ‘wpsl’ )] = array…. ) with $meta_fields[__( ‘Location’, ‘wpsl’ )] = array…
Hi,
How to show it on the front end. I mean how to show the newly created value in the store location front end.
I have checked below code, but its only showing this added code custom field under the location Tab.
add_filter( ‘wpsl_meta_box_fields’, ‘custom_meta_box_fields’ );
function custom_meta_box_fields( $meta_fields ) {
$meta_fields[__( ‘Location’, ‘wpsl’ )] = array(
‘phone’ => array(
‘label’ => __( ‘Tel’, ‘wpsl’ )
)
);
return $meta_fields;
}
I mean, the current fields like address, state, city , country and zip etc fields are not showing.