SureCart 4.13.1 has 57 actions and 204 filters, read directly from its source code on Nov 17, 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 SureCart fires an action
add_action( 'enqueue_block_editor_assets', function() {
// Your code runs here.
}, 10, 1 );
// Change a value SureCart is about to use
add_filter( 'comment_status_links', function( $status_links ) {
// Change $status_links here.
return $status_links;
}, 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
-
/** * Filters the comment status links. */ apply_filters( 'comment_status_links', $status_links ); -
/** * Fires after block editor assets have been enqueued. */ do_action( 'enqueue_block_editor_assets' ); -
/** * Filters the list of attachment image attributes. */ apply_filters( 'wp_get_attachment_image_attributes', $attr, $attachment, $size ); -
/** * Filters the context in which wp_get_attachment_image() is used. */ apply_filters( 'wp_get_attachment_image_context', 'wp_get_attachment_image' ); -
/** * Filters the post arguments used during an async request. */ apply_filters( "{$this->identifier}_post_args", $args ); -
/** * Filters the post arguments used during an async request. */ apply_filters( "{$this->identifier}_query_args", $args ); -
/** * Filters the post arguments used during an async request. */ apply_filters( "{$this->identifier}_query_url", $url ); -
/** * Number of seconds to sleep between batches. Defaults to 0 seconds, minimum * 0. */ apply_filters( "{$this->identifier}_seconds_between_batches", apply_filters( $this->prefix . '_seconds_between_batches', 0 ) ); -
/** * Should wp_die be used? */ apply_filters( "{$this->identifier}_wp_die", true ); -
/** * Number of seconds to sleep between batches. Defaults to 0 seconds, minimum * 0. */ apply_filters( "{$this->prefix}_seconds_between_batches", 0 ); -
/** * Filters the comment status links. */ apply_filters( 'abandoned_order_status_links', $status_links ); -
/** * Filters the columns displayed in the Coupons list table. */ apply_filters( "manage_{$current_page}_columns", array() ); -
/** * Fires for each custom column of any SureCart List Table. */ do_action( "manage_{$current_page}_custom_column", $column_name, $item ); -
/** * Filters the comment status links. */ apply_filters( 'payout_status_links', $status_links ); -
/** * Fires before the Filter button on the Posts and Pages list tables. */ do_action( 'restrict_manage_abandoned_checkouts', $this->screen->post_type, $which ); -
/** * Fires before the Filter button on the Posts and Pages list tables. */ do_action( 'restrict_manage_affiliate_referrals', $this->screen->post_type, $which ); -
/** * Fires before the Filter button on the Auto fees list tables. */ do_action( 'restrict_manage_auto_fees', $this->screen->post_type, $which ); -
/** * Fires before the Filter button on the Posts and Pages list tables. */ do_action( 'restrict_manage_cancellation_insights', $this->screen->post_type, $which ); -
/** * Fires before the Filter button on the Posts and Pages list tables. */ do_action( 'restrict_manage_customers', $this->screen->post_type, $which ); -
/** * Fires before the Filter button on the Posts and Pages list tables. */ do_action( 'restrict_manage_invoices', $this->screen->post_type, $which ); -
/** * Fires before the Filter button on the Posts and Pages list tables. */ do_action( 'restrict_manage_orders', $this->screen->post_type, $which ); -
/** * Fires before the Filter button on the Posts and Pages list tables. */ do_action( 'restrict_manage_subscriptions', $this->screen->post_type, $which ); -
/** * Filters the status links. */ apply_filters( 'sc_affiliate_clicks_status_links', $status_links ); -
/** * Filters the affiliation referrals status links. */ apply_filters( 'sc_affiliation_referrals_status_links', $status_links ); -
/** * Filters the allowed SVG attributes. */ apply_filters( 'sc_allowed_svg_html', array( 'svg' => array( 'class' => true, 'aria-hidden' => true, 'aria-labelledby' => true, 'role' => true, 'xmlns' => true, 'width' => true, 'height' => true, 'viewbox' => true, 'fill' => true, 'color' => true, 'fill-rule' => true, 'fill-opacity' => true, 'stroke' => true, 'stroke-width' => true, 'stroke-linecap' => true, 'stroke-linejoin' => true, 'stroke-miterlimit' => true, ), 'defs' => array... ); -
/** * Controls whether the cookie should be set via sc_setcookie(). */ apply_filters( 'sc_set_cookie_enabled', true, $name, $value, $expire, $secure ); -
/** * Filters the capability needed to run a given Site Health check. */ apply_filters( "site_health_test_rest_capability_{$check}", $default_capability, $check ); -
/** * Controls whether the cookie should only be accessible via the HTTP protocol, * or if it should also be accessible to Javascript. */ apply_filters( 'surecart_cookie_httponly', $httponly, $name, $value, $expire, $secure ); -
/** * Filters the languages directory path to use for SureCart. */ apply_filters( 'surecart_languages_directory', $lang_dir ); -
/** * Filter the admin screen ids the NPS survey is allowed to render on. */ apply_filters( 'surecart_nps_survey_screen_ids', [ 'toplevel_page_sc-dashboard', 'surecart_page_sc-settings', ] ); -
/** * Controls the options to be specified when setting the cookie. */ apply_filters( 'surecart_set_cookie_options', array( 'expires' => $expire, 'secure' => $secure, 'path' => COOKIEPATH ? COOKIEPATH : '/', 'domain' => COOKIE_DOMAIN, 'httponly' => apply_filters( 'surecart_cookie_httponly', $httponly, $name, $value, $expire, $secure ), ), $name, $value ); -
/** * Filter the query args for a specific list endpoint (e.g. * `surecart/products/list/query_args`). */ apply_filters( "surecart/{$this->resource}/list/query_args", $args, $request ); -
/** * Filter the response for a specific list endpoint (e.g. * `surecart/products/list/response`). */ apply_filters( "surecart/{$this->resource}/list/response", $response, $request, $args ); -
/** * Whether activation redirects to onboarding or the setup guide. */ apply_filters( 'surecart/activation/redirect', true ); -
/** * Filters whether SureCart admin pages are speculatively prerendered. */ apply_filters( 'surecart/admin/speculative_loading', true ); -
/** * Filter a product as exposed to external AI agents. Return null to leave it * out. */ apply_filters( 'surecart/agent_catalog/product', $item, $product ); -
/** * Filters the comment status links. */ apply_filters( 'surecart/auto_fees/index/links', $status_links ); -
/** * Filters the block pattern categories. */ apply_filters( 'surecart/blocks/pattern_categories', $this->categories ); -
/** * Filters the plugin block patterns. */ apply_filters( 'surecart/blocks/patterns', $this->patterns ); -
/** * Filter whether to use the built blocks manifest (metadata collection + * shortcodes). */ apply_filters( 'surecart/blocks/use_metadata_collection', true ); -
/** * Filter the scripts excluded from JS delay/defer. */ apply_filters( 'surecart/cache/js_defer_excludes', $scripts ); -
/** * Filter the script patterns excluded from delay-JS for blocks-next. */ apply_filters( 'surecart/cache/product_media_defer_excludes', $patterns ); -
/** * Action fired after purging cache for a product on stock adjustment. */ do_action( 'surecart/cache/purged_product', $product ); -
/** * Filter the SureCart cookies used for cache variation. */ apply_filters( 'surecart/cache/vary_cookies', $cookies ); -
/** * Filter the checkout-form state seed payload. */ apply_filters( 'surecart/checkout_form/state_seed', $payload, $product, $buy_link ); -
/** * Filter the URL the customer is sent to after a successful checkout. */ apply_filters( 'surecart/checkout/success_url', $url, $attributes ); -
/** * Filters content to display after the block. */ apply_filters( 'surecart/dashboard/block/after', '', $attributes, $content ); -
/** * Filters content to display before the block. */ apply_filters( 'surecart/dashboard/block/before', '', $attributes, $content ); -
/** * Filter whether to show the "Order Received" pre-shipment notice on the * customer order page for paid/processing shippable orders that have no * fulfillments yet. */ apply_filters( 'surecart/dashboard/order/pre_shipment_notice', true ); -
/** * Filter the deactivation survey reasons. Keys must be platform reason values. */ apply_filters( 'surecart/deactivation_reasons', array( 'temporary' => array( 'label' => esc_html__( 'This is a temporary deactivation for testing.', 'surecart' ), 'placeholder' => esc_html__( 'How can we assist you?', 'surecart' ), 'show_cta' => 'false', 'accept_feedback' => 'false', ), 'not_working' => array( 'label' => esc_html__( 'Something isn\'t working properly.', 'surecart' ), 'placeholder' => esc_html__( 'Please tell us more about wh... ); -
/** * Filters whether to remove the 'Formats' drop-down from the post list table. */ apply_filters( 'surecart/disable_fulfillment_dropdown', false ); -
/** * Filters whether to remove the 'Formats' drop-down from the post list table. */ apply_filters( 'surecart/disable_mode_dropdown', false ); -
/** * Filters whether to remove the 'Formats' drop-down from the post list table. */ apply_filters( 'surecart/disable_shipment_dropdown', false ); -
/** * Filter the product_collections REST collection params. */ apply_filters( 'surecart/product_collections/rest_args', $args ); -
/** * Filter whether a query already run for these exact query vars may be reused. */ apply_filters( 'surecart/product_list/reuse_query', true, $query_vars, $this->block ); -
/** * Filters which variant option names map to which schema.org property. */ apply_filters( 'surecart/product/json_schema/varies_by_map', array( 'color' => 'color', 'colour' => 'color', 'size' => 'size', 'material' => 'material', 'pattern' => 'pattern', ), $product ); -
/** * Filter the products REST collection params. */ apply_filters( 'surecart/products/rest_args', $args ); -
/** * Filters the expand values callers without the edit capability may forward to * the platform for this resource. */ apply_filters( 'surecart/rest/anonymous_expands', $this->anonymous_expands, $class, $request ); -
/** * Filter the query args for any list endpoint. */ apply_filters( 'surecart/rest/list/query_args', $args, $request, $this->resource ); -
/** * Filter the response for any list endpoint. */ apply_filters( 'surecart/rest/list/response', $response, $request, $args, $this->resource ); -
/** * Filters the private field keys stripped from view/embed catalog REST * responses. */ apply_filters( 'surecart/rest/private_catalog_fields', $fields, $type, $data ); -
/** * Whether the platform demo seed can be offered. */ apply_filters( 'surecart/setup_guide/demo_seed', true ); -
/** * Filter whether the current request should be noindexed. */ apply_filters( 'surecart/should_noindex', $this->hasNoIndexQueryVars(), $robots, $this ); -
/** * Filters the comment status links. */ apply_filters( 'surecart/subscription/index/links', $status_links ); -
/** * Fires when the platform permanently rejects an event. */ do_action( 'surecart/telemetry/rejected', $event, $errors ); -
/** * Filter whether SureCart automatically sends Facebook Pixel (fbq) events. */ apply_filters( 'surecart/tracking/facebook/enabled', true ); -
/** * Filter whether SureCart automatically sends Google Analytics * (gtag/dataLayer) events. */ apply_filters( 'surecart/tracking/google/enabled', true ); -
/** * Filters the list of attachment image attributes. */ apply_filters( 'wp_get_sc_product_attachment_image_attributes', $attr, $this, $size ); -
do_action( 'surecart/purchase_created', $purchase ); -
apply_filters( 'surecart/request/model', $class, $request ); -
apply_filters( 'surecart/review_form/enabled', $product->reviews_enabled ); -
apply_filters( 'surecart/translated_error', $translated, $response ); -
apply_filters( 'default_page_template_title', __( 'Theme Layout', 'surecart' ), 'rest-api' ); -
apply_filters( 'plugin_locale', determine_locale(), 'surecart' ); -
do_action( 'surecart/purchase_invoked', $this ); -
apply_filters( 'https_local_ssl_verify', false ); -
apply_filters( 'sc_customer_dashboard_store_logo_url', get_home_url() ); -
apply_filters( 'sc_login_redirect_url', $redirect_url ); -
apply_filters( 'surecart_block_output', $this->app->views()->make( $views )->with( $context )->toString() ); -
apply_filters( 'surecart-components/scData', [ 'cdn_root' => SURECART_CDN_IMAGE_BASE, 'root_url' => esc_url_raw( get_rest_url() ), 'plugin_url' => \SureCart::core()->assets()->getUrl(), 'home_url' => esc_url_raw( home_url() ), 'api_url' => \SureCart::requests()->getBaseUrl(), 'locale' => str_replace( '_', '-', determine_locale() ), 'currency' => \SureCart::account()->currency, 'currency_symbol' => html_entity_decode( Currency::getCurrency... ); -
do_action( 'surecart/checkout_confirmed', $checkout, $request ); -
apply_filters( 'surecart/create_forms', array( 'checkout' => array( 'name' => _x( 'checkout', 'Form slug', 'surecart' ), 'title' => _x( 'Checkout', 'Form title', 'surecart' ), 'content' => '<!-- wp:surecart/form {"mode":"test"} --> <!-- wp:surecart/heading {"title":"Contact Information"} --> <sc-heading>Contact Information<span slot="description"></span><span slot="end"></span></sc-heading> <!-- /wp:surecart/heading --> <!-- wp:surec... ); -
apply_filters( 'surecart/create_pages', array( 'checkout' => array( 'name' => _x( 'checkout', 'Page slug', 'surecart' ), 'title' => _x( 'Checkout', 'Page title', 'surecart' ), 'content' => '<!-- wp:surecart/checkout-form {"id":' . (int) $form->ID . ',"align":"wide"} --> <!-- wp:surecart/form {"mode":"test"} /--> <!-- /wp:surecart/checkout-form -->', ), 'order-confirmation' => array( 'name' => _x( 'order-confirmation', 'Page slug', 's... ); -
apply_filters( 'surecart/currency/format', $fmt->formatCurrency( $converted_amount, strtoupper( $currency_code ) ), $amount, $currency_code ); -
apply_filters( 'surecart/dashboard/invoice_list/query', [ 'customer_ids' => array_values( User::current()->customerIds() ), 'status' => [ 'paid', 'open' ], 'page' => 1, 'per_page' => 5, ] ); -
apply_filters( 'surecart/dashboard/order_list/query', [ 'customer_ids' => array_values( User::current()->customerIds() ), 'status' => [ 'paid', 'processing', 'payment_failed', 'canceled', 'void' ], 'page' => 1, 'per_page' => 5, ] ); -
apply_filters( 'surecart/dashboard/subscription_list/query', [ 'customer_ids' => array_values( User::current()->customerIds() ), 'status' => [ 'active', 'trialing', 'past_due', 'canceled' ], 'page' => 1, 'per_page' => 5, ] ); -
do_action( "surecart/models/{$called_class}/{$event}", $this ); -
apply_filters( 'surecart/payments/mode', $form_block['attrs']['mode'] ?? 'live' ); -
apply_filters( 'surecart/product-list/thumbnail-cover-size', 'large', $post_id ); -
do_action( 'surecart/purchase_revoked', $this ); -
apply_filters( 'surecart/shortcode/render', ( new $block() )->render( $attributes, do_shortcode( $this->content ) ), $attributes, $name ); -
apply_filters( 'surecart/shortcodes/render_callback', function ( $attributes, $content ) use ( $name, $block_name, $defaults ) { if ( empty( $block_name ) ) { return ''; } if ( $this->cannotRenderShortcode( $name ) ) { return $this->renderShortcodeNotice( $name ); } add_filter( 'should_load_separate_core_block_assets', '__return_false', 11 ); wp_enqueue_global_styles(); if ( is_array( $attributes ) && 0 === strpos( $block_name, 'surecart/product' ... ); -
apply_filters( "{$this->handle}/data", $this->data ); -
do_action( "{$this->identifier}_cancelled" ); -
do_action( "{$this->identifier}_completed" ); -
apply_filters( "{$this->identifier}_default_time_limit", 20 ); -
apply_filters( "{$this->identifier}_memory_exceeded", $return ); -
do_action( "{$this->identifier}_paused" ); -
apply_filters( "{$this->identifier}_queue_lock_time", $lock_duration ); -
do_action( "{$this->identifier}_resumed" ); -
apply_filters( "{$this->identifier}_time_exceeded", $return ); -
apply_filters( 'bricks/dynamic_data/exclude_tags', [] ); -
apply_filters( 'bricks/element/render_attributes', $this->attributes, $key, $this ); -
do_action( 'cache_enabler_clear_page_cache_by_post', $post_id ); -
do_action( "get_{$matches[1]}", $matches[2] ); -
apply_filters( 'litespeed_control_cacheable', false ); -
do_action( 'litespeed_control_set_nocache', $reason ); -
do_action( 'litespeed_purge_post', $post_id ); -
do_action( 'mepr-signup', $transaction ); -
apply_filters( 'plugins_update_check_locales', array_values( get_available_languages() ) ); -
do_action( 'purge_post_cache', $post_id ); -
apply_filters( "rest_{$this->endpoint}_request", $request, $method ); -
apply_filters( 'sc_anonymous_reviewer_name', __( 'Anonymous', 'surecart' ) ); -
apply_filters( 'sc_cart_disabled', false ); -
apply_filters( 'sc_checkout_price_selector_first_price_as_default', true ); -
apply_filters( 'sc_customer_dashboard_back_home_text', __( 'Back Home', 'surecart' ) ); -
apply_filters( 'sc_customer_dashboard_back_home_url', get_home_url() ); -
apply_filters( 'sc_display_instant_checkout_json_ld_schema', true, $product ); -
apply_filters( 'sc_display_instant_checkout_seo_meta', true, $product ); -
apply_filters( 'sc_display_product_json_ld_schema', true, $product ); -
apply_filters( 'sc_display_product_seo_meta', true, $product ); -
apply_filters( 'sc_elementor_templates', $templates ); -
apply_filters( 'sc_invoice_status_links', $status_links ); -
apply_filters( 'sc_order_status_links', $status_links ); -
apply_filters( 'sc_product_post_type_link_sc_collection', $terms[0], $terms, $post ); -
apply_filters( 'sc_surecart_page_screen_ids', [ 'toplevel_page_sc-dashboard', 'surecart_page_sc-orders', 'surecart_page_sc-abandoned-checkouts', 'surecart_page_sc-invoices', 'sc_product', 'surecart_page_sc-products', 'surecart_page_sc-product-collections', 'surecart_page_sc-bumps', 'surecart_page_sc-upsell-funnels', 'surecart_page_sc-product-groups', 'surecart_page_sc-coupons', 'surecart_page_sc-licenses', 'surecart_page_sc-subscriptions',... ); -
apply_filters( 'sc_wpseo_frontend_presenters', $title_presenters, $presenters ); -
apply_filters( "shortcode_atts_{$name}", $shortcode_attrs, $shortcode_attrs, $shortcode_attrs, $name ); -
apply_filters( 'surecart_app_core_favicon_url', $this->getAssetUrl( 'images/favicon.ico' ) ); -
apply_filters( 'surecart_app_core_sidebar_context_post_id', $post_id ); -
apply_filters( 'surecart_block_validators', array( new \SureCart\BlockValidator\VariantChoice(), ) ); -
do_action( 'surecart_buy_page_body_open' ); -
apply_filters( 'surecart_cache_plugins', [ 'swift-performance-lite/performance.php', 'clearfy/clearfy.php', 'wp-performance-score-booster/wp-performance-score-booster.php', 'psn-pagespeed-ninja/pagespeedninja.php', ] ); -
apply_filters( 'surecart_checkout_show_converted_total', true, $this ); -
apply_filters( 'surecart_disable_admin_bar', true ); -
apply_filters( 'surecart_excluded_post_meta_keys', $this->excluded_meta_keys ); -
apply_filters( 'surecart_gallery_item_video_attributes', $attr, $this->item->ID, $size ); -
apply_filters( "surecart_get_{$this->post_type}_post", self::$memoized_posts[ $model_id ], $model_id, $this ); -
apply_filters( 'surecart_get_collection_term', $terms[0] ?? null, $model_id, $this ); -
apply_filters( 'surecart_product_page_query_args', [ 'post_type' => 'sc_product', 'posts_per_page' => 1, 'post__in' => [ $attributes['product_post_id'] ?? get_the_ID() ], 'post_status' => $attributes['post_statuses'] ?? [ 'publish' ], ] ); -
apply_filters( 'surecart_recaptcha_min_score', 0.5 ); -
apply_filters( 'surecart_recaptcha_needed_validation_score', false ); -
apply_filters( 'surecart_show_admin_bar_new_content', true ); -
apply_filters( 'surecart_show_admin_bar_visit_store', true ); -
do_action( 'surecart_template_blank_body_open' ); -
do_action( 'surecart_template_dashboard_body_open' ); -
apply_filters( 'surecart_tutor_lms_product_cache_time', DAY_IN_SECONDS, $this ); -
apply_filters( 'surecart_video_html', $html, $video, $media, $metadata ); -
do_action( 'surecart.kernels.http_kernel.respond' ); -
apply_filters( 'surecart.middleware.user.can.capability', $capability, $request ); -
apply_filters( 'surecart.middleware.user.can.object_id', (int) $object_id, $capability, $request ); -
apply_filters( 'surecart.middleware.user.can.redirect_url', $url, $request ); -
apply_filters( 'surecart.middleware.user.logged_in.redirect_url', $url, $request ); -
apply_filters( 'surecart.middleware.user.logged_out.redirect_url', $url, $request ); -
apply_filters( "surecart.partials.{$matches[1]}.hook", true ); -
do_action( "surecart/{$this->object_name}/attributes_set", $this ); -
apply_filters( "surecart/{$this->object_name}/attributes/{$key}", $value, $this ); -
apply_filters( "surecart/{$this->object_name}/attributes/updated_at", $value, $this ); -
apply_filters( "surecart/{$this->object_name}/get_attribute", $attribute, $key, $this ); -
apply_filters( "surecart/{$this->object_name}/set_attribute", $value, $key, $this ); -
apply_filters( "surecart/{$this->object_name}/set_attributes", $this ); -
apply_filters( "surecart/{$this->object_name}/set_meta_data", $meta_data ); -
apply_filters( "surecart/{$this->object_name}/skip_filters", false ); -
do_action( 'surecart/admin/coupons/edit' ); -
apply_filters( 'surecart/block/registration/args', [ 'render_callback' => [ $this, 'preRender' ] ] ); -
apply_filters( 'surecart/checkout/auto-login-new-user', true ); -
apply_filters( 'surecart/checkout/finduser', true ); -
apply_filters( 'surecart/checkout/validate', $errors, $args, $request ); -
apply_filters( 'surecart/components/props', array_merge( $this->data, $args ), $this->tag, $this ); -
apply_filters( 'surecart/create_cart', [ 'cart' => [ 'name' => _x( 'cart', 'Cart slug', 'surecart' ), 'title' => _x( 'Cart', 'Cart title', 'surecart' ), 'content' => $pattern['content'], 'post_type' => 'sc_cart', ], ] ); -
apply_filters( 'surecart/create_saved_items', [ 'saved_items' => [ 'name' => _x( 'saved-items', 'Saved items page slug', 'surecart' ), 'title' => _x( 'Saved Items', 'Saved items page title', 'surecart' ), 'content' => wp_is_block_theme() ? '<!-- wp:surecart/customer-saved-items {"show_all":true,"align":"wide"} /-->' : '<!-- wp:surecart/customer-saved-items {"show_all":true} /-->', 'post_type' => 'page', 'page_template' => wp_is_block_theme... ); -
apply_filters( 'surecart/create_shop', [ 'shop' => [ 'name' => _x( 'shop', 'Shop page slug', 'surecart' ), 'title' => _x( 'Shop', 'Shop page title', 'surecart' ), 'content' => $pattern['content'], 'post_type' => 'page', ], ] ); -
apply_filters( 'surecart/currency_switcher/label', strtoupper( $current_currency ) ); -
apply_filters( 'surecart/currency_symbols', array( 'AED' => 'د.إ', 'AFN' => '؋', 'ALL' => 'L', 'AMD' => 'AMD', 'ANG' => 'ƒ', 'AOA' => 'Kz', 'ARS' => '$', 'AUD' => '$', 'AWG' => 'Afl.', 'AZN' => 'AZN', 'BAM' => 'KM', 'BBD' => '$', 'BDT' => '৳ ', 'BGN' => 'лв.', 'BHD' => '.د.ب', 'BIF' => 'Fr', 'BMD' => '$', 'BND' => '$', 'BOB' => 'Bs.', 'BRL' => 'R$', 'BS... ); -
apply_filters( 'surecart/currency/filter_url', self::$filter_url, $permalink ); -
apply_filters( 'surecart/currency/locale', self::getCurrencyLocale() ); -
apply_filters( 'surecart/currency/max_cents', $minimum_fraction_digits, $amount, $converted_amount ); -
apply_filters( 'surecart/currency/switcher_attributes', [ 'position' => 'right' === $cart_menu_alignment ? 'right' : 'left', ] ); -
do_action( 'surecart/dashboard/subscription/after_current_plan', $subscription ); -
do_action( 'surecart/dashboard/subscription/before_current_plan', $subscription ); -
apply_filters( 'surecart/dashboard/subscription/inner_html', $inner_html, $this->tag, $this->data ); -
apply_filters( 'surecart/date_format', $date_format ); -
apply_filters( 'surecart/default_image_sizes', $this->image_sizes, $this ); -
apply_filters( 'surecart/default_password_nag', true, $user_id ); -
apply_filters( 'surecart/display_amount/free', esc_html__( 'Free', 'surecart' ) ); -
do_action( 'surecart/help_widget/loaded' ); -
apply_filters( 'surecart/help_widget/show', in_array( get_current_screen()->id, \SureCart::pages()->getSureCartPageScreenIds(), true ) ); -
apply_filters( 'surecart/image_attributes/safe_keys', array( 'src', 'alt', 'class', 'width', 'height', 'srcset', 'sizes', 'loading', 'decoding', 'fetchpriority', 'title' ) ); -
apply_filters( 'surecart/image_resize_options', $this->resize_options, $this ); -
apply_filters( 'surecart/image-slider/active-breakpoint', $attributes['desktop_gallery'] ? 782 : false ); -
do_action( 'surecart/integrations/create', $request->get_params() ); -
do_action( 'surecart/integrations/delete', $request->get_params() ); -
apply_filters( "surecart/integrations/providers/{$integration->provider}/item", $integration->integration_id ); -
apply_filters( "surecart/integrations/providers/{$provider}/is_valid_item", true, $integration_id ); -
surecart/integrations/providers/{$request->get_param('provider')}/{$request->get_param('model')}/items
filter Copy link Customise this hookapply_filters( "surecart/integrations/providers/{$request->get_param('provider')}/{$request->get_param('model')}/items", [], $request->get_param( 'search' ), $request ); -
surecart/integrations/providers/{$request->get_param('provider')}/item
filter Copy link Customise this hookapply_filters( "surecart/integrations/providers/{$request->get_param('provider')}/item", $request['id'], $request ); -
apply_filters( "surecart/integrations/providers/find/{$integration->provider}", [] ); -
surecart/integrations/providers/find/{$request->get_param('provider')}
filter Copy link Customise this hookapply_filters( "surecart/integrations/providers/find/{$request->get_param('provider')}", [ 'id' => $request->get_param( 'id' ), 'label' => __( 'Not Found', 'surecart' ), 'provider_label' => __( 'The integration has been removed or is unavailable.', 'surecart' ), ], $request ); -
surecart/integrations/providers/list/{$request->get_param('model')}
filter Copy link Customise this hookapply_filters( "surecart/integrations/providers/list/{$request->get_param('model')}", [], $request->get_param( 'search' ), $request ); -
apply_filters( 'surecart/noindex_query_vars', array_unique( $query_vars ), $this ); -
apply_filters( 'surecart/og:image/size', 'full' ); -
do_action( 'surecart/post_created', $page_id, $page_data ); -
apply_filters( 'surecart/product-line-item-image/fallback_src', \SureCart::core()->assets()->getUrl() . '/images/image-placeholder.svg', $this ); -
apply_filters( 'surecart/product-video-poster/fallback_src', trailingslashit( \SureCart::core()->assets()->getUrl() ) . 'images/placeholder.jpg' ); -
apply_filters( 'surecart/product-video-poster/size', 'large' ); -
apply_filters( 'surecart/product/json_schema', $this->json_schema->get( $product ), $this->json_schema, $product ); -
apply_filters( 'surecart/product/json_schema/condition', 'https://schema.org/NewCondition', $product ); -
apply_filters( 'surecart/product/replace_content_with_product_info_part', true ); -
do_action( 'surecart/product/sync/created', $this->post, $model ); -
apply_filters( 'surecart/product/sync/created/props', $props, $model ); -
do_action( 'surecart/product/sync/updated', $this->post, $model ); -
apply_filters( 'surecart/product/sync/updated/props', array_merge( $props, array( 'ID' => $this->post->ID, ) ), $model ); -
do_action( 'surecart/purchase_updated', $updated->purchase, (object) [ 'data' => (object) [ 'object' => (object) $updated->purchase->toArray(), 'previous_attributes' => (object) array_filter( [ 'product' => $updated->purchase->product_id !== $existing->purchase->product_id ? ( $existing->purchase->product_id ?? null ) : null, 'quantity' => $updated->purchase->quantity !== $existing->purchase->quantity ? ( $existing->purchase->quantit... ); -
apply_filters( 'surecart/request/args', $args, $endpoint ); -
apply_filters( 'surecart/request/endpoint', $endpoint, $args ); -
apply_filters( 'surecart/request/response', $response, $args, $endpoint ); -
apply_filters( 'surecart/review_average/enabled', $product->reviews_enabled ); -
apply_filters( 'surecart/review_count/enabled', $product->reviews_enabled ); -
apply_filters( 'surecart/review_stars/enabled', $product->reviews_enabled ); -
apply_filters( 'surecart/sc-phone-input/pattern', '[-s#0-9_+/().]*' ); -
apply_filters( 'surecart/seed/all', true ); -
apply_filters( 'surecart/set_attributes', $this ); -
apply_filters( 'surecart/subscription/can_be_canceled', $this->checkIfCanBeSwitched(), $this ); -
apply_filters( 'surecart/subscription/can_be_changed', $this->checkIfCanBeSwitched(), $this ); -
apply_filters( 'surecart/subscription/can_modify', true, $this ); -
apply_filters( 'surecart/subscription/can_update_quantity', $this->checkIfCanBeSwitched(), $this ); -
apply_filters( 'surecart/sync/customers/batch_size', 100 ); -
apply_filters( 'surecart/sync/woocommerce_products/batch_size', $batch_size ); -
apply_filters( 'surecart/time_format', $time_format ); -
apply_filters( 'surecart/translated_errors', $formatted ); -
apply_filters( 'surecart/webhook/processes/log_expiration', '30 days' ); -
apply_filters( 'surecart/webhooks/localhost/register', $this->isLocalHost() ); -
apply_filters( 'surecart/woocommerce_sync/price', $price_data, $product ); -
apply_filters( 'surecart/woocommerce_sync/product_data', $product_import_data, $product ); -
apply_filters( 'surecart/woocommerce_sync/product_metadata', $metadata, $product ); -
apply_filters( 'surecart/woocommerce_sync/variants', $variants, $product ); -
do_action( 'tutor_after_enrolled', $course_id, $wp_user->ID, $enroll_id ); -
apply_filters( 'tutor_course_restrict_new_entry', '<a href="' . get_the_permalink() . '" class="tutor-btn tutor-btn-outline-primary tutor-btn-md tutor-btn-block ' . $required_loggedin_class . '">' . esc_html__( 'Enroll Course', 'surecart' ) . '</a>', $course_id ); -
apply_filters( 'tutor_enroll_required_login_class', 'tutor-open-login-modal' ); -
do_action( 'wphb_clear_page_cache', $post_id );
Generated from SureCart'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: