Class ts_google_calendar_sync
PRDDD Handles the two way Google Calendar sync.
Author: Tyche Softwares
Since: 1.0
Located at ts-google-calendar-sync.php
Methods summary
public
|
|
public
string
|
#
prdd_new_order_email( string $subject )
Set the global parameter to email subject. Used to identify whether the WooCommerce email is being fired for the admin or the customer. |
public
string
|
#
prdd_customer_email( string $subject )
Set the global parameter to email subject Used to identify whether the WooCommerce email is being fired for the admin or the customer. |
public
|
|
public
|
#
prdd_add_to_calendar_customer( integer $item_id, resource $item, resource $order )
Adds buttons on WooCommerce Order received page using which customers can add deliveries into their calendars. |
public
|
#
prdd_add_to_calendar_admin( integer $item_id, resource $item, resource $order )
Adds buttons on WooCommerce admin emails using which admin can add deliveries into their calendars. |
public
|
#
prdd_add_to_woo_pages( integer $item_id, resource $item, resource $order )
Adds buttons to WooCommerce pages such as My Account page and Thank you page based on settings which allow the ability to add deliveries to the calendar. |
public
resource
|
#
prdd_create_gcal_obj( integer $item_id, resource $item, resource $order_details )
Returns an object which can be used to create 'Add to Calendar' buttons for Google Calendar Sync. |
public
|
#
prdd_add_buttons_emails( resource $prdd )
Creates 'Add to Google Calendar' & 'Add to Other Calendar' buttons in WooCommerce emails. |
public
|
#
prdd_add_buttons( resource $prdd )
Creates 'Add to Google Calendar' & 'Add to Other Calendar' buttons on WooCommerce pages. |
public
|
#
prdd_admin_delivery_calendar_events( )
Export deliveries to Google Calendar from the Product Delivery Date->View Deliveries->Add to Calendar button. This is especially used to export deliveries for orders that were placed before automated Google Calendar Sync is enabled. |