ShareCrew 0.15.0 has 22 actions and 31 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 ShareCrew fires an action
add_action( 'sharecrew_application_received', function( $id ) {
// Your code runs here.
}, 10, 1 );
// Change a value ShareCrew is about to use
add_filter( 'sharecrew_gifting_enabled', 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
-
phpincludes/Front/class-application.php line 590 · used in 2 places
/** * `events-contract.md`: fired by `Front\Application` (apply form), listened to * by `Emails` (creator: application received; merchant: new application). */ do_action( 'sharecrew_application_received', $creator->id ); -
phpincludes/Admin/class-gifts-page.php line 105 · used in 2 places
/** * `gifting_enabled` master switch — see `Gifts\Allowance`'s doc-block for * why this reads a filter rather than `Settings::get()` (no such key exists * yet; flagged in this task's report). */ apply_filters( 'sharecrew_gifting_enabled', (bool) \ShareCrew\Plugin\Settings::get( 'gifts_enabled' ) ); -
phpincludes/Attribution/class-resolver.php line 236
/** * Veto an attribution. A non-empty string blocks it (the order is left * unattributed) and is recorded as the reason. */ apply_filters( 'sharecrew_attribution_block_reason', null, $creator->id, $order ); -
phpincludes/Attribution/class-resolver.php line 169
/** * The ordered signal list `resolve()` walks. Each entry must implement {@see * Signal}; a filter that returns something else is silently skipped rather * than fataling a checkout. */ apply_filters( 'sharecrew_attribution_signals', $this->default_signals, $order, $request ); -
phpincludes/Tracking/class-bot-detector.php line 44
/** * The regular expression {@see BotDetector::is_bot()} matches a user agent * against. Replace it entirely (not just append to it) to drop the bundled * defaults. */ apply_filters( 'sharecrew_bot_patterns', self::PATTERN ); -
phpincludes/Codes/class-coupon-manager.php line 179
/** * The email hooks this to notify the creator of their new code. */ do_action( 'sharecrew_code_rotated', $creator->id, (string) $old_code, $new_code, $reason ); -
phpincludes/Ledger/class-lifecycle.php line 210
/** * Last-resort override of a new sale row's amount, in minor units. */ apply_filters( 'sharecrew_commission_amount', $engine_amount, $breakdown->to_array(), $order_id, $creator->id ); -
phpincludes/Fraud/class-coupon-sites.php line 62
/** * Filters the coupon-aggregator hosts the leak monitor flags a referrer * against, in addition to matching a velocity/uses spike. */ apply_filters( 'sharecrew_coupon_site_hosts', self::HOSTS ); -
phpincludes/Creators/class-service.php line 257
/** * The welcome email hooks this (`emails-and-notifications.md`, not yet built * — `docs/tasks/medium-complexity/15-applications-queue.md`'s acceptance * criteria: "assert with a test listener" until it exists). */ do_action( 'sharecrew_creator_approved', $id, $message ); -
phpincludes/Creators/class-service.php line 314
/** * `docs/specs/events-contract.md`. The code's own invalidity check at checkout * and the portal's read-only state both key off `sharecrew_creators.status` * directly (via `Repository\Creators::find()` / the capability), not off this * action — this fires so the emails/notifications stream can hook a "your * account was paused" notice without polling. */ do_action( 'sharecrew_creator_paused', $id, $reason ); -
phpincludes/Emails/class-base-email.php line 571
/** * `docs/specs/emails-and-notifications.md#hooks`. */ apply_filters( 'sharecrew_email_enabled', true, $this->id, $creator_id ); -
phpincludes/Gifts/class-service.php line 384
/** * `events-contract.md`: `sharecrew_gift_approved( int $gift_id, int $order_id * )`. */ do_action( 'sharecrew_gift_approved', $gift_id, $order_id ); -
phpincludes/Gifts/class-service.php line 520
/** * `events-contract.md`: `sharecrew_gift_declined( int $gift_id, string $note * )`. */ do_action( 'sharecrew_gift_declined', $gift_id, $note ); -
phpincludes/Gifts/class-service.php line 279
/** * "before wc_create_order()" (`gifting-posts-and-content.md#hooks`). */ apply_filters( 'sharecrew_gift_order_args', [ 'customer_id' => $creator->user_id, 'created_via' => 'sharecrew_gift', 'status' => 'pending', ], $gift_id ); -
phpincludes/PortalContent/class-gifts-screen.php line 289
/** * `33-gifting.md`, scope item 2: "the order's tracking meta if a known * shipping plugin wrote one (filter `sharecrew_gift_tracking`)." `null` * default — no shipping plugin is assumed. */ apply_filters( 'sharecrew_gift_tracking', null, $order ); -
phpincludes/Front/class-leaderboard.php line 279
/** * The opted-in creator ids; a site may add or remove ids from outside the * Profile screen (a CSV import, say). */ apply_filters( 'sharecrew_leaderboard_opted_in_creator_ids', $ids ); -
phpincludes/Engine/class-order-snapshot-factory.php line 176
/** * Filters whether one order line counts toward the profit basis. */ apply_filters( 'sharecrew_line_eligible', $eligible, $item, $order ); -
phpincludes/Ledger/class-order-status.php line 49
/** * Filters the order statuses in which a commission is created and matures. */ apply_filters( 'sharecrew_paid_statuses', $statuses ); -
phpincludes/Payouts/class-details.php line 256
/** * `docs/specs/events-contract.md`: fired by `Payouts\Details::save()`, * listened to by `Emails` for the security notice sent regardless of * notification preferences. */ do_action( 'sharecrew_payout_method_changed', $creator->id ); -
phpincludes/Posts/class-service.php line 143
/** * `events-contract.md`: "Fired by Posts\Service::register()" — * `sharecrew_post_registered( int $post_id, int $creator_id )`. */ do_action( 'sharecrew_post_registered', $post->id, $creator_id ); -
phpincludes/Payouts/class-statement.php line 113
/** * Hand the statement HTML to a PDF-invoice plugin. Return the PDF bytes to * serve them as `application/pdf`; leave `null` to serve the HTML. */ apply_filters( 'sharecrew_statement_pdf', $pdf, $html, $payout ); -
phpincludes/Payouts/class-store-credit.php line 101
/** * Let a balance-carrying store-credit plugin issue the credit. Return a * non-empty string — that plugin's reference — to take over; the payout is * then marked paid with it and no coupon is created. */ apply_filters( 'sharecrew_store_credit_issue', $reference, $payout, $credit_cents, $email ); -
phpincludes/Ledger/class-exit-write-off.php line 202 · used in 7 places
do_action( 'sharecrew_commission_created', $row->id ); -
phpincludes/Attribution/class-resolver.php line 291 · used in 2 places
do_action( 'sharecrew_order_attributed', $attribution->id, $order ); -
phpincludes/Tiers/class-evaluator.php line 288 · used in 2 places
do_action( 'sharecrew_tier_changed', $creator->id, $from->id, $to->id, true ); -
phpincludes/Ledger/class-manual-actions.php line 159
do_action( 'sharecrew_commission_held', $held->id, $code ); -
phpincludes/Creators/class-service.php line 288
do_action( 'sharecrew_creator_declined', $id, $reason, $reapply_allowed ); -
phpincludes/Posts/class-service.php line 247
apply_filters( 'sharecrew_disclosure_text', $default ); -
phpincludes/Emails/class-base-email.php line 586
apply_filters( 'sharecrew_email_language', $lang, $creator_id ); -
phpincludes/Emails/class-base-email.php line 597
apply_filters( 'sharecrew_email_placeholders', $this->placeholders, $this->id, $placeholders ); -
phpincludes/Emails/class-base-email.php line 612
do_action( 'sharecrew_email_sent', $this->id, $creator_id, $placeholders ); -
phpincludes/PortalContent/class-wc-order-shipment-lookup.php line 55
apply_filters( 'sharecrew_gift_shipped_at', $default, $order ); -
phpincludes/Health/class-probe.php line 325
do_action( 'sharecrew_health_alert', $result ); -
phpincludes/Health/class-probe.php line 303
apply_filters( 'sharecrew_health_maturation_last_run', ( null === $stamped || false === $stamped || '' === $stamped ) ? null : (int) $stamped ); -
phpincludes/Fraud/class-leak-monitor.php line 295
do_action( 'sharecrew_leak_flagged', $creator->id, $numbers ); -
phpincludes/Engine/class-cost-resolver.php line 64
apply_filters( 'sharecrew_line_cost', $cents, $line ); -
phpincludes/class-plugin.php line 243
do_action( 'sharecrew_loaded' ); -
phpincludes/Engine/class-other-costs.php line 40
apply_filters( 'sharecrew_order_other_costs', $costs, $order ); -
phpincludes/Engine/class-fee-estimator.php line 63
apply_filters( 'sharecrew_order_payment_fee', $cents, $order ); -
phpincludes/Engine/class-shipping-cost-table.php line 56
apply_filters( 'sharecrew_order_shipping_cost', $cents, $order ); -
phpincludes/Payouts/class-service.php line 64
do_action( 'sharecrew_payout_paid', $payout_id ); -
phpincludes/Payouts/class-reminder.php line 89
do_action( 'sharecrew_payout_run_due', $report->to_array() ); -
phpincludes/Portal/class-endpoint.php line 132
apply_filters( 'sharecrew_portal_menu_label', (string) Settings::get( 'my_account_label' ) ); -
phpincludes/Portal/class-template.php line 102
apply_filters( 'sharecrew_portal_template_args', $args, $name ); -
phpincludes/Portal/class-template.php line 74
apply_filters( 'sharecrew_portal_template_path', $found, $name ); -
phpincludes/Posts/class-service.php line 310
apply_filters( 'sharecrew_post_platforms', self::default_platform_map() ); -
phpincludes/Front/class-template.php line 103
apply_filters( 'sharecrew_public_template_args', $args, $name ); -
phpincludes/Front/class-template.php line 74
apply_filters( 'sharecrew_public_template_path', $found, $name ); -
phptemplates/portal/gifts.php line 137
do_action( 'sharecrew_render_gift_request', $screen, $strings ); -
phpincludes/Payouts/class-statement.php line 516
apply_filters( 'sharecrew_statement_template', $found ); -
phptemplates/emails/partials/body.php line 173
do_action( 'woocommerce_email_footer', $email ); -
phptemplates/emails/partials/body-plain.php line 114
apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) ); -
phptemplates/emails/partials/body.php line 79
do_action( 'woocommerce_email_header', $email_heading, $email );
Generated from ShareCrew'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: