Sell.AI Returns 1.8.0 has 11 actions and 22 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 Sell.AI Returns fires an action
add_action( 'sellai_returns_after_request_deleted', function( $id ) {
// Your code runs here.
}, 10, 1 );
// Change a value Sell.AI Returns is about to use
add_filter( 'sellai_returns_admin_settings_tabs', function( $tabs ) {
// Change $tabs here.
return $tabs;
}, 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
-
/** * Filter the settings tabs. Pro adds 'integracje' (Base.) here. */ apply_filters( 'sellai_returns_admin_settings_tabs', $tabs ); -
/** * Fires after a request is permanently deleted, so Pro can clean up its own * per-request data (e.g. the stored AI analysis, which is no longer a * self-expiring transient). */ do_action( 'sellai_returns_after_request_deleted', $id ); -
/** * Filter feature gate for a specific Pro feature. */ apply_filters( "sellai_returns_feature_{$feature}", $default ); -
/** * Resolve a customer-entered order number, for shops whose order numbers * differ from order IDs (sequential order number plugins). */ apply_filters( 'sellai_returns_find_order_by_number', $order, $number ); -
/** * Fires after a WooCommerce refund was created for a request. */ do_action( 'sellai_returns_refund_created', $request->id, (int) $refund->get_id(), $updated, [ 'order_id' => $order->get_id(), 'amount' => $total, 'items' => $summary, 'restocked' => ! empty( $restock_lines ), 'source' => $source, 'resolution' => $resolution, ] ); -
/** * Filter the default refund plan before it is shown or executed. */ apply_filters( 'sellai_returns_refund_plan', $plan, $request, $order ); -
/** * Filter whether the WooCommerce refund is also sent to the payment gateway. */ apply_filters( 'sellai_returns_refund_via_gateway', false, $request ); -
/** * Render extra info rows in the request detail meta table. */ do_action( 'sellai_returns_request_detail_meta_rows', $request ); -
/** * Let Pro persist its own settings-tab fields (e.g. Base. integration). */ apply_filters( 'sellai_returns_settings_save', $current, $tab ); -
/** * Filter whether the current status change originates from an external sync * (Base.). */ apply_filters( 'sellai_returns_status_change_is_external_sync', $syncing ); -
/** * Order statuses in which the goods may still be withdrawn from. */ apply_filters( 'sellai_returns_withdrawal_order_statuses', [ 'processing', 'on-hold', 'completed' ] ); -
apply_filters( 'sellai_returns_license_page_url', admin_url( 'admin.php?page=sellai-returns-license' ) ); -
do_action( 'sellai_returns_after_request_created', $request_id, $request ); -
do_action( 'sellai_returns_before_customer_email', $request ); -
do_action( 'sellai_returns_before_merchant_email', $request ); -
do_action( 'sellai_returns_before_request_created', $data ); -
apply_filters( 'sellai_returns_customer_email_body', self::customer_body( $request ), $request ); -
apply_filters( 'sellai_returns_customer_email_subject', sprintf( __( '[%1$s] Zgłoszenie nr %2$d przyjęte — odpowiemy w ciągu 14 dni', 'sell-ai-returns' ), $site, $request->id ), $request ); -
apply_filters( 'sellai_returns_eligible_order_statuses', [ 'wc-completed', 'wc-processing' ] ); -
apply_filters( 'sellai_returns_merchant_email_body', self::merchant_body( $request ), $request ); -
apply_filters( 'sellai_returns_merchant_email_subject', sprintf( __( '[%1$s] Nowe zgłoszenie — %2$s nr %3$d', 'sell-ai-returns' ), $site, strtolower( $request->get_type_label() ), $request->id ), $request ); -
apply_filters( 'sellai_returns_merchant_notification_email', $settings_merchant ?: (string) get_option( 'admin_email' ), $request ); -
do_action( 'sellai_returns_pro_detail_main_bottom', $request ); -
do_action( 'sellai_returns_pro_detail_sidebar_top', $request ); -
do_action( 'sellai_returns_request_status_changed', $id, $request->status, $new_status, $updated_request ); -
do_action( 'sellai_returns_settings_render_tab_integracje', $s ); -
apply_filters( 'sellai_returns_verification_email_body', self::verification_body( $email, $code ), $email, $code ); -
apply_filters( 'sellai_returns_verification_email_subject', sprintf( __( '[%1$s] Twój kod weryfikacyjny: %2$s', 'sell-ai-returns' ), $site, $code ), $email ); -
apply_filters( 'sellai_returns_withdrawal_customer_email_body', self::withdrawal_customer_body( $request ), $request ); -
apply_filters( 'sellai_returns_withdrawal_customer_email_subject', sprintf( __( '[%1$s] Potwierdzenie otrzymania oświadczenia o odstąpieniu od umowy — zamówienie nr %2$s', 'sell-ai-returns' ), get_bloginfo( 'name' ), self::order_number( $request ) ), $request ); -
apply_filters( 'sellai_returns_withdrawal_days', 14 ); -
apply_filters( 'sellai_returns_withdrawal_merchant_email_body', self::withdrawal_merchant_body( $request ), $request ); -
apply_filters( 'sellai_returns_withdrawal_merchant_email_subject', sprintf( __( '[%1$s] Nowe oświadczenie o odstąpieniu od umowy — zamówienie nr %2$s', 'sell-ai-returns' ), get_bloginfo( 'name' ), self::order_number( $request ) ), $request );
Generated from Sell.AI Returns'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: