public
|
|
public
|
#
orddd_activate( )
Add Default settings to WordPress options table when plugin is installed.
Add Default settings to WordPress options table when plugin is installed.
Since
1.0
Globals
resource $wpdb WordPress Object
array $orddd_weekdays Weekdays array
Hook
register_activation_hook
|
public static
boolean
|
#
orddd_check_woo_installed( )
Check if WooCommerce is active.
Check if WooCommerce is active.
Returns
boolean True if WooCommerce is active, else false.
Since
5.3
|
public static
|
#
orddd_update_install( )
Update the settings if required when the plugin is updated using the Automatic Updater.
Update the settings if required when the plugin is updated using the Automatic Updater.
Since
1.0
Globals
resource $wpdb WordPress object
array $orddd_weekdays Weekdays Array
|
public
array
|
#
orddd_add_cron_schedule( array $schedules )
Run a cron once in week to delete old records for lockout
Run a cron once in week to delete old records for lockout
Parameters
- $schedules
- Existing Cron Schedules
Returns
array Array of schedules
Since
4.0
Hook
cron_schedules
|
public
|
#
orddd_delete_old_lockout_data_cron( )
Hook into that action that'll fire once a week
Hook into that action that'll fire once a week
Since
4.0
Hook
orddd_delete_old_lockout_data_action
|
public
|
#
orddd_check_if_woocommerce_active( )
Function checks if the WooCommerce plugin is active or not. If it is not active then it will display a notice.
Function checks if the WooCommerce plugin is active or not. If it is not active then it will display a notice.
Since
5.3
Hook
admin_init
|
public static
|
#
orddd_disabled_notice( )
Display a notice in the admin Plugins page if the plugin is activated while WooCommerce is deactivated.
Display a notice in the admin Plugins page if the plugin is activated while WooCommerce is deactivated.
Since
5.3
Hook
admin_notices
|
public
array
|
#
orddd_plugin_settings_link( array $links )
Settings link on Plugins page
Settings link on Plugins page
Parameters
Returns
array
Since
1.0
Hook
plugin_action_links_order-delivery-date
|
public
array
|
#
orddd_plugin_row_meta( array $links, string $file )
Documentation links on Plugins page
Documentation links on Plugins page
Parameters
Returns
array
Since
1.0
Hook
plugin_row_meta
|
public
string
|
#
orddd_update_po_file( )
Load Localization files.
Returns
string $loaded Text domain
Since
2.6.3
Hook
init
|
public
|
#
orddd_capabilities( )
Capability to allow shop manager to edit settings
Capability to allow shop manager to edit settings
Since
3.1
Hook
admin_init
|
public
|
#
orddd_load_ajax( )
Used to load ajax functions required by plugin.
Used to load ajax functions required by plugin.
Since
1.0
|
public static
string
|
#
get_orddd_version( )
Returns version number of the plugin
Returns version number of the plugin
Returns
string Plugin version number
Since
1.0
|
public
|
#
orddd_update_db_check( )
Executed when the plugin is updated using the Automatic Updater.
Executed when the plugin is updated using the Automatic Updater.
Since
1.0
Globals
int $orddd_plugin_version Current plugin version
int $orddd_version Current plugin version
Hook
admin_init
|
public static
|
#
orddd_front_scripts_js( )
Load JS file on Frontend
Since
1.0
Globals
int $orddd_version Current plugin version
Hook
woocommerce_after_checkout_billing_form
woocommerce_after_checkout_shipping_form
woocommerce_before_order_notes
woocommerce_after_order_notes
|
public static
|
#
orddd_front_scripts_css( )
Load CSS files on Frontend
Load CSS files on Frontend
Since
1.0
Globals
int $orddd_version Current plugin version
Hook
woocommerce_after_checkout_billing_form
woocommerce_after_checkout_shipping_form
woocommerce_before_order_notes
woocommerce_after_order_notes
|
public
|
#
orddd_my_enqueue_js( string $hook )
Load JS files on Admin
Parameters
Since
1.0
Globals
array $orddd_languages Languages array
array $orddd_version Current plugin version
Hook
admin_enqueue_scripts
|
public static
|
#
orddd_my_enqueue_css( string $hook )
Load CSS files on Admin
Parameters
Since
1.0
Globals
array $orddd_version Current plugin version
Hook
admin_enqueue_scripts
|