Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [
- 'name' => __( 'Réception', 'your-text-domain' ),
- 'id' => $prefix . 'reception',
- 'type' => 'radio',
- 'options' => [
- 'cueillette' => __( 'Cueillette', 'your-text-domain' ),
- 'livraison' => __( 'Livraison', 'your-text-domain' ),
- ],
- 'required' => 1,
- 'admin_columns' => [
- 'position' => 'after courriel',
- 'title' => 'Réception',
- ],
- 'save_field' => 1,
- 'inline' => false,
- ],
- [
- 'name' => __( 'Destination', 'your-text-domain' ),
- 'id' => $prefix . 'destination',
- 'type' => 'group',
- 'save_field' => 1,
- 'fields' => [
- [
- 'name' => __( 'Adresse', 'your-text-domain' ),
- 'id' => $prefix . 'adresse',
- 'type' => 'text',
- 'columns' => 8,
- 'save_field' => 1,
- ],
- [
- 'name' => __( 'Ville', 'your-text-domain' ),
- 'id' => $prefix . 'ville',
- 'type' => 'text',
- 'columns' => 5,
- 'save_field' => 1,
- ],
- [
- 'name' => __( 'Code postal', 'your-text-domain' ),
- 'id' => $prefix . 'code_postal',
- 'type' => 'text',
- 'columns' => 3,
- 'save_field' => 1,
- ],
- ],
- 'hidden' => [
- 'when' => [['reception', '!=', 'livraison']],
- 'relation' => 'or',
- ],
- ],
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement