Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo
  • Hook Reference
  • Docs Home

Packages

  • None
  • Order-Delivery-Date-Pro-for-WooCommerce
    • Admin
      • Edit-Order
      • Non-Sensitive-Data-Capture
      • Settings
        • Custom-Delivery
        • General
        • Google-Calendar-Sync
    • Class-ORDDD-Email-Manager
    • Common-Functions
    • Delivery-Calendar
    • Emails
      • Class-ORDDD-Email-Update-Date
    • Filter
    • Frontend
      • Checkout-Page-Processes
      • ICS-Files-Data
    • Google-Calendar
    • Integration
    • Lang
    • License
    • Plugin-Updates
      • EDD-SL-Plugin-Updater

Classes

  • orddd_calendar_sync
  • OrdddGcal

Class orddd_calendar_sync

Main class for Google Calendar Sync for deliveries.

Package: Order-Delivery-Date-Pro-for-WooCommerce\Google-Calendar
Author: Tyche Softwares
Class: orddd_calendar_sync
Located at orddd-calendar-sync.php

Methods summary

public
# __construct( )

Default constructor

Default constructor

Since

4.0
public
# orddd_setup_gcal_sync( )

Adds the GCal class file

Adds the GCal class file

Since

4.0

Hook

init
public
# orddd_google_calendar_update_order_meta( integer $order_id )

This function adds an event/delivery information to the Google Calendar if automated sync is enabled.

This function adds an event/delivery information to the Google Calendar if automated sync is enabled.

Parameters

$order_id
  • Order ID for which delivery information need to be synced

Since

4.0

Hook

woocommerce_checkout_update_order_meta
public
# orddd_add_to_calendar_customer( WC_Order $order )

Adds buttons on WooCommerce Order received page using which customers can add deliveries into their calendars.

Adds buttons on WooCommerce Order received page using which customers can add deliveries into their calendars.

Parameters

$order
  • Order Object

Since

4.0

Hook

woocommerce_order_details_after_order_table
public
# orddd_add_to_calendar_customer_my_account( WC_Order $order, array $action )

Adds buttons on My Account page using which customers can add deliveries into their calendars.

Adds buttons on My Account page using which customers can add deliveries into their calendars.

Parameters

$order
$action - Order Object
$action
$order - Order actions (Pay, Cancel, View)

Since

4.0

Hook

woocommerce_my_account_my_orders_actions
public
# orddd_add_to_calendar_customer_email( WC_Order $order, boolean $sent_to_admin = false, boolean $plain_text = false )

Adds buttons in the WooCommerce customer emails when Integration mode is selected as directly using which customers can add deliveries/event into their calendars.

Adds buttons in the WooCommerce customer emails when Integration mode is selected as directly using which customers can add deliveries/event into their calendars.

Parameters

$order
  • Order Object
$sent_to_admin
(default: false)
$plain_text
(default: false)

Since

4.0

Hook

woocommerce_email_customer_details
public
# orddd_admin_add_to_calendar_email_notification( WC_Order $order, boolean $sent_to_admin = true, boolean $plain_text = false )

Adds buttons in the WooCommerce customer emails when Integration mode is selected as manually using which customers can add deliveries/event into their calendars.

Adds buttons in the WooCommerce customer emails when Integration mode is selected as manually using which customers can add deliveries/event into their calendars.

Parameters

$order
  • Order Object
$sent_to_admin
(default: false)
$plain_text
(default: false)

Since

4.0

Hook

woocommerce_email_customer_details
public
# import_events( )

Creates orders when the events are imported from the Google Calendar

Creates orders when the events are imported from the Google Calendar

Since

4.0

Globals

array $orddd_date_formats
public
# save_ics_url_feed( )

Save the Google Import URL Feeds from Order Delivery Date->Settings->Google Calendar Sync tab->Import Events Called via AJAX

Save the Google Import URL Feeds from Order Delivery Date->Settings->Google Calendar Sync tab->Import Events Called via AJAX

Since

4.0
public
# delete_ics_url_feed( )

Delete the Google Import URL Feeds from Order Delivery Date->Settings->Google Calendar Sync tab->Import Events Called via AJAX

Delete the Google Import URL Feeds from Order Delivery Date->Settings->Google Calendar Sync tab->Import Events Called via AJAX

Since

4.0
public static
# orddd_admin_delivery_calendar_events( )

Export deliveries to Google Calendar from the Order Delivery Date->Delivery Calendar->Add to Calendar button. This is especially used to export deliveries for orders that were placed before Automated Google Calendar Sync is enabled.

Export deliveries to Google Calendar from the Order Delivery Date->Delivery Calendar->Add to Calendar button. This is especially used to export deliveries for orders that were placed before Automated Google Calendar Sync is enabled.

Since

4.0

Globals

resource $wpdb
API documentation generated by ApiGen