wc_gzd_order_supports_parcel_delivery_reminder

The WooCommerce Germanized wc gzd order supports parcel delivery reminder function.

Description

wc_gzd_order_supports_parcel_delivery_reminder( $order_id ); 

Parameters (1)

0. $order_id
The order id.

Usage

  1. if ( !function_exists( 'wc_gzd_order_supports_parcel_delivery_reminder' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce-germanized/includes/wc-gzd-order-functions.php'; 
  3.  
  4. // The order id. 
  5. $order_id = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = wc_gzd_order_supports_parcel_delivery_reminder($order_id); 
  9.  

Defined (1)

The function is defined in the following location(s).

/includes/wc-gzd-order-functions.php  
  1. function wc_gzd_order_supports_parcel_delivery_reminder( $order_id ) { 
  2. $order = wc_get_order( $order_id ); 
  3.  
  4. if ( wc_gzd_get_crud_data( $order, 'parcel_delivery_opted_in' ) === 'yes' ) 
  5. return true; 
  6.  
  7. return false;