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_filter

Class orddd_filter

orddd_filter Class

Package: Order-Delivery-Date-Pro-for-WooCommerce\Filter
Author: Tyche Softwares
Class: orddd_filter
Located at filter.php

Methods summary

public static array
# orddd_woocommerce_order_delivery_date_column( array $columns )

This function is used to add the custom plugin column Delivery Date on WooCommerce->Orders page.

This function is used to add the custom plugin column Delivery Date on WooCommerce->Orders page.

Parameters

$columns
  • The Existing columns for the WooCommerce->Orders table.

Returns

array
$new_columns - Updated list of column names.

Since

2.7

Hook

manage_edit-shop_order_columns
public static
# orddd_woocommerce_custom_column_value( string $column )

This function echoes the delivery details to the 'Delivery Date' column on WooCommerce->Orders for each order.

This function echoes the delivery details to the 'Delivery Date' column on WooCommerce->Orders for each order.

Parameters

$column
  • Column Name

Since

2.7

Hook

manage_shop_order_posts_custom_column
public static array
# orddd_woocommerce_custom_column_value_sort( array $columns )

Adds the Delivery Date column in WooCommerce->Orders as a sortable column. Mentions the meta key present in post meta table that can be used for sorting.

Adds the Delivery Date column in WooCommerce->Orders as a sortable column. Mentions the meta key present in post meta table that can be used for sorting.

Parameters

$columns
  • List of sortable columns

Returns

array
  • Sortable columns with the plugin column included.array

Since

2.7

Hook

manage_edit-shop_order_sortable_columns
public static array
# orddd_woocommerce_delivery_date_orderby( array $vars )

Delivery date column orderby.

Delivery date column orderby.

Helps WooCommerce understand using the value based on which a column should be sorted. The delivery date is stored as a timestamp in the _orddd_timestamp variable in wp_postmeta

Parameters

$vars
  • Query variables

Returns

array
$vars - Updated Query variables.

Since

2.7

Hook

request
public static
# orddd_restrict_orders( )

Prints a dropdown to filter the orders based on Delivery Dates in WooCommerce->Orders.

Prints a dropdown to filter the orders based on Delivery Dates in WooCommerce->Orders.

Since

2.7

Hook

restrict_manage_posts
public static array
# orddd_add_filterable_field( array $vars )

Filter the orders displayed in WooCommerce->Orders based on the Delivery Dates filter dropdown.

Filter the orders displayed in WooCommerce->Orders based on the Delivery Dates filter dropdown.

Parameters

$vars
  • Query Variables

Returns

array
$vars - Updated Query Variables

Since

2.7

Hook

request
public static array
# orddd_add_search_fields( array $search_fields )

Adds the Delivery Date field to the set of searchable fields so that the orders can be searched based on Delivery details.

Adds the Delivery Date field to the set of searchable fields so that the orders can be searched based on Delivery details.

Parameters

$search_fields
  • Array of post meta fields to search by

Returns

array
$search_fields - Updated array of post meta fields to search by

Since

2.7

Hook

woocommerce_shop_order_search_fields
public static
# orddd_display_delivery_date_admin_order_meta( WC_Order $order )

Echoes the Delivery date on WooCommerce->Orders->Edit Order page.

Echoes the Delivery date on WooCommerce->Orders->Edit Order page.

Parameters

$order
  • Order object

Since

2.7

Hook

woocommerce_admin_order_data_after_billing_address woocommerce_admin_order_data_after_shipping_address


public static
# orddd_display_time_slot_admin_order_meta( WC_Order $order )

Echoes the Delivery time on WooCommerce->Orders->Edit Order page.

Echoes the Delivery time on WooCommerce->Orders->Edit Order page.

Parameters

$order
  • Order object

Since

2.7

Hook

woocommerce_admin_order_data_after_billing_address woocommerce_admin_order_data_after_shipping_address


API documentation generated by ApiGen