CrewCommerce 1.0.1 has 22 actions and 18 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 CrewCommerce fires an action
add_action( 'crewcommerce_approval_card_end', function( $workflow, $arg2 ) {
// Your code runs here.
}, 10, 2 );
// Change a value CrewCommerce is about to use
add_filter( 'crewcommerce_admin_attention_items', function( $items ) {
// Change $items here.
return $items;
}, 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
-
/** * Fires at the end of an approval card. */ do_action( 'crewcommerce_approval_card_end', $workflow, 'approver' ); -
/** * Fires above the Approvals table. */ do_action( 'crewcommerce_admin_approvals_before_table', $workflows ); -
/** * Fires next to the Approvals page title, for extra actions. */ do_action( 'crewcommerce_admin_approvals_title_actions' ); -
/** * Items for the dashboard's "Needs your attention" box. Each item is an array * with text, link and cta (link text). */ apply_filters( 'crewcommerce_admin_attention_items', $items ); -
/** * Fires above a company's team table in WP Admin. */ do_action( 'crewcommerce_admin_company_before_members', (int) $company_id ); -
/** * Renders one extra cell in a company's team table. */ do_action( "crewcommerce_admin_team_column_{sanitize_key($column_key)}", $member, (int) $company_id ); -
/** * Extra columns for a company's team table in WP Admin, as key => heading. * Each cell is rendered by the crewcommerce_admin_team_column_{key} action. */ apply_filters( 'crewcommerce_admin_team_columns', array(), (int) $company_id ); -
/** * Fires at the start of an approval card. */ do_action( 'crewcommerce_approval_card_start', $workflow ); -
/** * The approval threshold for a company. */ apply_filters( 'crewcommerce_approval_threshold', $threshold, (int) $company_id ); -
/** * Fires after an order's approval workflow is created and assigned. */ do_action( 'crewcommerce_approval_workflow_created', $workflow_id, $order, $approvers ); -
/** * The confirmation shown to an approver after they approve an order. */ apply_filters( 'crewcommerce_approved_message', $message, $workflow, $order ); -
/** * Fires before a company's memberships are removed. */ do_action( 'crewcommerce_before_company_deleted', (int) $post_id, array_map('intval', $member_ids) ); -
/** * Whether a person may approve or reject a workflow. */ apply_filters( 'crewcommerce_can_decide_workflow', $allowed, $workflow, (int) $user_id ); -
/** * Approvers for an order, in order. The first is assigned the order. */ apply_filters( 'crewcommerce_company_approvers', $ids, (int) $company_id, (int) $exclude_user_id, $rows ); -
/** * Fires after a company is created. */ do_action( 'crewcommerce_company_created', $company_id, $admin_user_id ); -
/** * Lets an add-on send the order to a further approval step instead of * releasing it. Return true when another step was started; the order then * stays Pending Approval. */ apply_filters( 'crewcommerce_continue_approval', false, $workflow, $order, $approver_id ); -
/** * Fires once CrewCommerce has loaded all of its components. Add-ons that * extend CrewCommerce should hook in here. */ do_action( 'crewcommerce_loaded' ); -
/** * Fires above the team table on Manage Team. */ do_action( 'crewcommerce_manage_team_before_members', $company_id, $user_id ); -
/** * Renders one extra Manage Team cell. */ do_action( "crewcommerce_manage_team_column_{sanitize_key($column_key)}", $member, $company_id ); -
/** * Extra columns for the Manage Team table, as key => heading. Each row's cell * is rendered by the crewcommerce_manage_team_column_{key} action. */ apply_filters( 'crewcommerce_manage_team_columns', array(), $company_id ); -
/** * Fires at the top of My Requests. */ do_action( 'crewcommerce_my_requests_before', $user_id, $company_id ); -
/** * Whether an order (or cart) needs approval. */ apply_filters( 'crewcommerce_needs_approval', $needs, $context ); -
/** * Fires after an order's approval records were deleted with it. */ do_action( 'crewcommerce_order_workflows_deleted', (int) $order_id, $ids ); -
/** * Fires above the list of approvals waiting for the viewer. */ do_action( 'crewcommerce_pending_approvals_before_list', $pending, $user_id ); -
/** * Sanitize settings added by an add-on. */ apply_filters( 'crewcommerce_sanitize_settings', $sanitized, $input ); -
/** * Fires at the top of the Team Dashboard. */ do_action( 'crewcommerce_team_dashboard_before', $user_id, (int) $company_id ); -
do_action( 'crewcommerce_approval_requested', $order->get_id(), $workflow_id ); -
do_action( 'crewcommerce_approval_unassigned', $order->get_id(), $workflow_id ); -
do_action( 'crewcommerce_approval_cancelled', $workflow->order_id, $workflow_id, $requester_id ); -
apply_filters( 'crewcommerce_default_permissions', $permissions, $role ); -
do_action( 'crewcommerce_order_approved', $workflow->order_id, $workflow_id ); -
apply_filters( 'crewcommerce_order_needs_approval', $needs, $order ); -
do_action( 'crewcommerce_order_rejected', $workflow->order_id, $workflow_id, $notes ); -
apply_filters( 'crewcommerce_stale_hours', 48 ); -
apply_filters( 'crewcommerce_status_after_approval', $status, $order ); -
do_action( 'crewcommerce_team_activity', (int) $user_id, (int) $company_id, $action, $data ); -
apply_filters( 'crewcommerce_workflow_status_labels', array( 'pending' => __('Pending', 'crewcommerce'), 'unassigned' => __('Needs an approver', 'crewcommerce'), 'approved' => __('Approved', 'crewcommerce'), 'rejected' => __('Rejected', 'crewcommerce'), 'cancelled' => __('Cancelled', 'crewcommerce'), ) ); -
woocommerce_bacs_process_payment_order_status
filter Used by 7 plugins → Copy link Customise this hookapply_filters( 'woocommerce_bacs_process_payment_order_status', 'on-hold', $order ); -
woocommerce_cheque_process_payment_order_status
filter Used by 2 plugins → Copy link Customise this hookapply_filters( 'woocommerce_cheque_process_payment_order_status', 'on-hold', $order ); -
woocommerce_cod_process_payment_order_status
filter Used by 7 plugins → Copy link Customise this hookapply_filters( 'woocommerce_cod_process_payment_order_status', $order->has_downloadable_item() ? 'on-hold' : 'processing', $order );
Generated from CrewCommerce'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: