function crea_ruolo_ristoratore() { add_role( 'ristoratore', __('Ristoratore'), array( 'read' => true, 'level_0' => true, ) ); } add_action('init', 'crea_ruolo_ristoratore'); function nascondi_prodotti_ristoratori_per_non_ristoratori( $query ) { if ( is_admin() || ! $query->is_main_query() ) { return; } if ( is_shop() || is_product_category() || is_product_tag() ) { if ( ! is_user_logged_in() ) { $tax_query = array( array( 'taxonomy' => 'product_cat', 'field' => 'slug', 'terms' => array( 'ristoratori' ), 'operator' => 'NOT IN', ), ); $query->set( 'tax_query', $tax_query ); } else { $user = wp_get_current_user(); if ( ! in_array( 'ristoratore', (array) $user->roles ) ) { $tax_query = array( array( 'taxonomy' => 'product_cat', 'field' => 'slug', 'terms' => array( 'ristoratori' ), 'operator' => 'NOT IN', ), ); $query->set( 'tax_query', $tax_query ); } } } } add_action( 'pre_get_posts','nascondi_prodotti_ristoratori_per_non_ristoratori' ); function blocca_accesso_shop_ristoratori() { if ( is_page( 'shop-ristoratori' ) ) { // sostituire con lo slug esatto della pagina if ( ! is_user_logged_in() ) { wp_redirect( wp_login_url( get_permalink() ) ); exit; } $user = wp_get_current_user(); if ( ! in_array( 'ristoratore', (array) $user->roles ) ) { wp_redirect( home_url() ); exit; } } } add_action( 'template_redirect', 'blocca_accesso_shop_ristoratori' );

OFFERTE AZIENDALI ETICHETTA PERSONALIZZATA

PUOI SCEGLIERE

  • la tipologia di vino (bianco,rosso,rosato)
  • la qualità (12°/13°/14° vol alcool)
  • la bottiglia (bourgogne / bordolese)
  • la capacità (0.750 lt / 0.375 lt )

 

Categoria:

Descrizione

personalizza la tua attività con una bottiglia raffigurante il logo della tua azienda

contattaci e chiedi un preventivo

Informazioni aggiuntive

COLORE

BIANCO, ROSATO, ROSSO

FORMATO

LT 0.750

GRADAZIONE

12.00
13.00
14.00

Recensioni

Ancora non ci sono recensioni.

Recensisci per primo “OFFERTE AZIENDALI ETICHETTA PERSONALIZZATA”

Il tuo indirizzo email non sarà pubblicato. I campi obbligatori sono contrassegnati *

Assistenza Clienti
Contattaci via Whatsapp