Contact · 06 18 85 74 01

verif

https://woocommerce.com/document/woocommerce-pdf-product-vouchers/
redeemed = racheté
ds item
$voucher_id = $val_item_product->get_meta( '_voucher_id' );

dans les commandes, les item payé par carte possede un voucher id , ce voucher id possede un parent qui a un PDF_id

Order 5447

order-get_meta( '_voucher_code' ) =
string(0) ""

voucher_id 5448 line_itemOnline-Atma

floobject(WP_Post)#8096 (24) {
  ["ID"]=>
  int(5448)
  ["post_author"]=>
  string(1) "1"
  ["post_date"]=>
  string(19) "2025-09-19 13:32:30"
  ["post_date_gmt"]=>
  string(19) "2025-09-19 13:32:30"
  ["post_content"]=>
  string(0) ""
  ["post_title"]=>
  string(13) "PRFPTPYU-5447"
  ["post_excerpt"]=>
  string(0) ""
  ["post_status"]=>
  string(12) "wcpdf-active"
  ["comment_status"]=>
  string(6) "closed"
  ["ping_status"]=>
  string(6) "closed"
  ["post_password"]=>
  string(0) ""
  ["post_name"]=>
  string(13) "prfptpyu-5447"
  ["to_ping"]=>
  string(0) ""
  ["pinged"]=>
  string(0) ""
  ["post_modified"]=>
  string(19) "2025-09-19 13:32:30"
  ["post_modified_gmt"]=>
  string(19) "2025-09-19 13:32:30"
  ["post_content_filtered"]=>
  string(0) ""
  ["post_parent"]=>
  int(895)
  ["guid"]=>
  string(69) "https://saadh-sangat-kundalini.yoga/?post_type=wc_voucher&p=5448"
  ["menu_order"]=>
  int(0)
  ["post_type"]=>
  string(10) "wc_voucher"
  ["post_mime_type"]=>
  string(0) ""
  ["comment_count"]=>
  string(1) "1"
  ["filter"]=>
  string(3) "raw"
}
  post_type wc_voucher
  post_title PRFPTPYU-5447
  post_name  prfptpyu-5447
  post_status wcpdf-active
  post_parent 895  : pdfVOUCHERcarte5online 
  

retrieve all post that have pdf voucher 895 has parent

floobject(WP_Post)#8098 (24) {
  ["ID"]=>
  int(895)
  ["post_author"]=>
  string(1) "1"
  ["post_date"]=>
  string(19) "2020-12-14 19:48:40"
  ["post_date_gmt"]=>
  string(19) "2020-12-14 19:48:40"
  ["post_content"]=>
  string(0) ""
  ["post_title"]=>
  string(25) "OLDpdfVOUCHERcarte5online"
  ["post_excerpt"]=>
  string(0) ""
  ["post_status"]=>
  string(7) "private"
  ["comment_status"]=>
  string(6) "closed"
  ["ping_status"]=>
  string(6) "closed"
  ["post_password"]=>
  string(0) ""
  ["post_name"]=>
  string(22) "pdfvouchercarte5online"
  ["to_ping"]=>
  string(0) ""
  ["pinged"]=>
  string(0) ""
  ["post_modified"]=>
  string(19) "2025-10-24 15:53:27"
  ["post_modified_gmt"]=>
  string(19) "2025-10-24 15:53:27"
  ["post_content_filtered"]=>
  string(0) ""
  ["post_parent"]=>
  int(0)
  ["guid"]=>
  string(77) "https://saadh-sangat-kundalini.yoga/?post_type=wc_voucher_template&p=895"
  ["menu_order"]=>
  int(0)
  ["post_type"]=>
  string(19) "wc_voucher_template"
  ["post_mime_type"]=>
  string(0) ""
  ["comment_count"]=>
  string(1) "0"
  ["filter"]=>
  string(3) "raw"
}

//5448 //5442 //4197 ? wc_voucher

////////////////////////////////

nom des produit (3 lettres du jour en minuscule)

class avc reservation (segond produit id = online)

class sans reservation

array(6) {
  ["prev_from"]=>
  string(10) "2026-03-06"
  ["prev_to"]=>
  string(10) "2026-03-12"
  ["next_from"]=>
  string(10) "2026-03-20"
  ["next_to"]=>
  string(10) "2026-03-26"
  ["cur_from"]=>
  string(10) "2026-03-13"
  ["cur_to"]=>
  string(10) "2026-03-13"
}
8186 6108 Vinyasa Flow Mathilde Chevalier 2026-03-12T18:45 2026-03-12T19:45 6110 Mathilde
8184 5495 Yoga Jiwan Mukti Louise Nunzi 2026-03-09T20:15 2026-03-09T21:30 5498 Louise
8182 5493 Improvisation théâtrale Studio 27 2026-03-12T20:00 2026-03-12T22:30 5497 studio27
8178 5209 Pilates Doux Hugo Fattah 2026-03-10T18:15 2026-03-10T19:15 5205 Hugo
8181 5201 Pilates Andry Rasolomanana 2026-03-12T12:30 2026-03-12T13:30 5203 Andry
8176 5199 Yoga Kundalini Seema Arti Kaur 2026-03-10T19:45 2026-03-10T21:00 5197 Seema
8174 5195 Yoga Kundalini Prakash Kaur 2026-03-10T12:15 2026-03-10T13:15 5193 Prakash
8156 1492 Yoga Kundalini Avtar Nirban Singh 2026-03-09T08:00 2026-03-09T09:30 477 nirban
8150 1203 Yoga Kundalini 1350|1420 Har Atma Kaur 2026-03-09T18:30 2026-03-09T20:00 484 atma
8152 1203 Yoga Kundalini 4667|1420 Har Atma Kaur 2026-03-11T18:30 2026-03-11T20:00 484 atma
8151 1203 Yoga Kundalini 1519|1420 Har Atma Kaur 2026-03-13T08:00 2026-03-13T09:30 484 atma
0
    0
    Votre Chariot
    Le chario est vide