OrderCRM for WooCommerce 3.4.9 has 6 actions and 54 filters, read directly from its source code on Nov 19, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when OrderCRM for WooCommerce fires an action
add_action( 'action_scheduler_run_queue', function( $context ) {
// Your code runs here.
}, 10, 1 );
// Change a value OrderCRM for WooCommerce is about to use
add_filter( 'ordercrm_report_pdf_rate_limit_check_ip', function( $value ) {
// Change $value here.
return $value;
}, 10, 1 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
/** * Учитывать ли IP при ограничении частоты * генерации PDF (можно отключить за общим NAT). */ apply_filters( 'ordercrm_report_pdf_rate_limit_check_ip', true ); -
/** * Async Request queue (as_enqueue_async_action) may not run via * runner()->run() alone. Fires the WP async queue processor when available * (runner / shutdown simulation). */ do_action( 'action_scheduler_run_queue', $context ); -
/** * Enable OrderCRM background jobs via Action Scheduler. */ apply_filters( 'ordercrm_action_scheduler_enabled', true ); -
/** * WooCommerce email ID for customer notification after CRM order creation. */ apply_filters( 'ordercrm_customer_order_created_email_id', 'customer_on_hold_order', $order_id, $order ); -
/** * WooCommerce email ID after CRM status change when core transition hook is * missing. */ apply_filters( 'ordercrm_customer_status_change_email_id', self::get_default_customer_email_id_for_status( $new_status ), $order->get_id(), $order, $old_status, $new_status ); -
/** * Откладывать ли transactional emails WC при мутации * заказа из CRM. */ apply_filters( 'ordercrm_defer_transactional_emails_on_order_mutation', false ); -
/** * Defer CRM logs transient invalidation via Action Scheduler. */ apply_filters( 'ordercrm_deferred_logs_cache_invalidation_enabled', true ); -
/** * Defer CRM report transient invalidation via Action Scheduler. */ apply_filters( 'ordercrm_deferred_report_cache_invalidation_enabled', true ); -
/** * Отправлять ли накопленную очередь * transactional emails WC после CRM-мутации. */ apply_filters( 'ordercrm_dispatch_transactional_emails', true ); -
/** * Filter registered OrderCRM WC email classes (after core merge). */ apply_filters( 'ordercrm_email_classes', $emails ); -
/** * Глобально откладывать transactional emails WC * (очередь + shutdown/AS). */ apply_filters( 'ordercrm_enable_wc_deferred_transactional_emails', false ); -
/** * Delete legacy invoice file after successful migration to protected storage. */ apply_filters( 'ordercrm_invoice_delete_legacy_after_migration', false, $order_id, $legacy_path, $target_path ); -
/** * Enable legacy invoice migration to protected storage (Security Hardening * 4.1). */ apply_filters( 'ordercrm_invoice_storage_migration_enabled', true ); -
/** * Filters whether the current request is treated as a mobile device for CRM * mobile blocking. */ apply_filters( 'ordercrm_is_mobile_device', $is_mobile ); -
/** * Retention window (days) for login/logout activity log rows. */ apply_filters( 'ordercrm_login_logout_log_retention_days', 62 ); -
/** * Override client IP used for CRM login rate limiting (e.g. trusted proxy). */ apply_filters( 'ordercrm_login_rate_limit_client_ip', $ip ); -
/** * Enable soft rate limiting for CRM login attempts. */ apply_filters( 'ordercrm_login_rate_limit_enabled', true ); -
/** * Skip rate limiting for this login attempt. */ apply_filters( 'ordercrm_login_rate_limit_exempt', false, $login ); -
/** * Customize rate-limit key material (login + IP) before hashing. */ apply_filters( 'ordercrm_login_rate_limit_key_material', $login . '|' . $ip, $login, $ip ); -
/** * Lockout duration after too many failed login attempts (seconds). */ apply_filters( 'ordercrm_login_rate_limit_lockout_seconds', 15 * MINUTE_IN_SECONDS ); -
/** * Max failed login attempts before temporary lockout (per login + IP). */ apply_filters( 'ordercrm_login_rate_limit_max_attempts', 10 ); -
/** * Rolling window for failed login attempts (seconds). */ apply_filters( 'ordercrm_login_rate_limit_window_seconds', 15 * MINUTE_IN_SECONDS ); -
/** * Delay before clearing `crm_logs_*` transients (seconds). */ apply_filters( 'ordercrm_logs_cache_invalidate_delay', 10 ); -
/** * Migrate legacy invoice path when accessed through CRM (download/status). */ apply_filters( 'ordercrm_migrate_legacy_invoice_on_access', true, $order_id ); -
/** * TTL кеша KPI-статистики дашборда за текущий * месяц (секунды). */ apply_filters( 'ordercrm_monthly_stats_cache_ttl', 5 * MINUTE_IN_SECONDS ); -
/** * Max seconds an async PDF job may stay in queued/running state. */ apply_filters( 'ordercrm_pdf_async_job_stale_seconds', $default ); -
/** * Enable async PDF export for CRM reports. */ apply_filters( 'ordercrm_pdf_export_async_enabled', false ); -
/** * Period types that should use async export by default. */ apply_filters( 'ordercrm_pdf_export_async_period_types', $default ); -
/** * Max seconds an async products PDF export job may stay in queued/running * state. */ apply_filters( 'ordercrm_products_pdf_async_job_stale_seconds', $default ); -
/** * Product count above which the products PDF export switches from sync to * async. Default 0 keeps legacy sync behaviour. */ apply_filters( 'ordercrm_products_pdf_async_threshold', $default_threshold ); -
/** * Max seconds an async products XLSX export job may stay in queued/running * state. */ apply_filters( 'ordercrm_products_xlsx_async_job_stale_seconds', $default ); -
/** * Product count above which the Excel export switches from sync to async * (queued job). Default 0 keeps legacy sync behaviour (reliable regardless of * Action Scheduler queue health); raise it only on hosts where AS processing * is known to run promptly. */ apply_filters( 'ordercrm_products_xlsx_async_threshold', $default_threshold ); -
/** * Delay before clearing `crm_report_*` transients (seconds). */ apply_filters( 'ordercrm_report_cache_invalidate_delay', 45 ); -
/** * Отключить rate limit PDF для текущего * пользователя. */ apply_filters( 'ordercrm_report_pdf_rate_limit_exempt', false ); -
/** * Extend allowed CRM REST origins if an explicit integration requires it. */ apply_filters( 'ordercrm_rest_allowed_origins', array( $site_origin ), $site_origin ); -
/** * Override client IP in security audit log context. */ apply_filters( 'ordercrm_security_audit_log_client_ip', $ip ); -
/** * Enable security audit logging for sensitive CRM events. */ apply_filters( 'ordercrm_security_audit_log_enabled', true ); -
/** * Whether to log a specific security audit event. */ apply_filters( 'ordercrm_security_audit_log_event', true, $event_type, $context ); -
/** * Allowed security audit event types. */ apply_filters( 'ordercrm_security_audit_log_events', $allowed_events, $event_type, $context ); -
/** * WooCommerce log level for security audit events. */ apply_filters( 'ordercrm_security_audit_log_level', 'warning', $event_type, $context ); -
/** * Minimum interval between identical security audit events. */ apply_filters( 'ordercrm_security_audit_log_throttle_seconds', 60 ); -
/** * Toggle strict nonce mode for CRM REST GET/HEAD. */ apply_filters( 'ordercrm_strict_rest_nonce_enabled', $enabled ); -
/** * Default list mirrors WooCommerce WC_Emails::$email_actions (subset). Plugins * may extend via `woocommerce_email_actions`. */ apply_filters( 'woocommerce_email_actions', array( 'woocommerce_order_status_pending_to_processing', 'woocommerce_order_status_pending_to_completed', 'woocommerce_order_status_pending_to_on-hold', 'woocommerce_order_status_failed_to_processing', 'woocommerce_order_status_failed_to_completed', 'woocommerce_order_status_cancelled_to_processing', 'woocommerce_order_status_cancelled_to_completed', 'woocommerce_order_status_on-hold_to_process... ); -
do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email ); -
do_action( 'woocommerce_email_order_meta', $order, $sent_to_admin, $plain_text, $email ); -
do_action( 'woocommerce_email_customer_details', $order, $sent_to_admin, $plain_text, $email ); -
do_action( 'woocommerce_email_header', $email_heading, $email ); -
apply_filters( "woocommerce_email_heading_{$this->id}", $this->format_string( $heading ), $this->object, $this ); -
apply_filters( "woocommerce_email_subject_{$this->id}", $this->format_string( $subject ), $this->object, $this ); -
apply_filters( 'ast_tracking_providers', array() ); -
apply_filters( 'ordercrm_enable_report_cache', true ); -
apply_filters( 'ordercrm_invoice_storage_migration_batch_size', self::DEFAULT_BATCH_SIZE ); -
apply_filters( 'ordercrm_order_blocked_stock_statuses', $statuses ); -
apply_filters( 'ordercrm_report_cache_ttl', $default, $end_date ); -
apply_filters( 'ordercrm_report_pdf_rate_limit_seconds', $default ); -
apply_filters( 'ordercrm_rest_skip_cookie_bootstrap', false ); -
wc_order_attribution_origin_formatted_source
filter Used by 5 plugins → Copy link Customise this hookapply_filters( 'wc_order_attribution_origin_formatted_source', ucfirst( trim( $source, '()' ) ), $source ); -
apply_filters( 'wc_order_attribution_origin_label', $label, $source_type, $source, $formatted_source );
Generated from OrderCRM for WooCommerce's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Done for you
Rather have it built for you?
Tell us what should change and we’ll write and test the code using these hooks.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin customisation
from $149
New features or changed behaviour, without editing the plugin’s files.
- Built as a companion plugin, so updates never wipe it
- Exact quote before we start
- Tested on staging, then deployed
Typical turnaround: 3–7 business days
Choose thisNot sure which fits? Describe what you need and we’ll suggest the simplest option.
Can't find the right hook?
We can build the customisation for you. Describe what you need: