Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*Catálogo*/
- function apg_campo_catalogo( $general_fields, $vendor_id ) {
- $vendor_data = get_user_meta( $vendor_id, 'wcfmmp_profile_settings', true );
- if ( isset( $general_fields[ 'store_name' ] ) ) {
- $catalogo = isset( $vendor_data[ 'catalogo' ] ) ? esc_attr( $vendor_data[ 'catalogo' ] ) : '';
- $general_fields[ 'catalogo' ]= [
- 'label' => __( 'Catalog', 'wc-frontend-manager' ) ,
- 'type' => 'upload',
- 'class' => 'wcfm-text wcfm_ele',
- 'label_class' => 'wcfm_title wcfm_ele',
- 'value' => $catalogo,
- 'mime' => 'Uploads'
- ];
- $produccion = isset( $vendor_data[ 'produccion' ] ) ? esc_attr( $vendor_data[ 'produccion' ] ) : '';
- $general_fields[ 'produccion' ]= [
- 'label' => __( 'Production time', 'wc-frontend-manager' ) ,
- 'type' => 'text',
- 'class' => 'wcfm-text wcfm_ele',
- 'label_class' => 'wcfm_title wcfm_ele',
- 'value' => $produccion
- ];
- }
- return $general_fields;
- }
- add_filter( 'wcfm_marketplace_settings_fields_general', 'apg_campo_catalogo', 50, 2 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement