Nanflows Sliding Cart 1.1.0 has 32 actions and 49 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 Nanflows Sliding Cart fires an action
add_action( 'nfsc_admin_section_after', function( $section, $fields ) {
// Your code runs here.
}, 10, 2 );
// Change a value Nanflows Sliding Cart is about to use
add_filter( 'nfsc_admin_nav_links', 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
-
/** * Extra cart item data for an add from the slide cart. */ apply_filters( 'nfsc_add_to_cart_item_data', array(), $source, $parent_id, $variation_id ); -
/** * Render a custom field type. */ do_action( "nfsc_admin_field_{$type}", $key, $field, $value, $name ); -
/** * After a settings card; $fields tells which section it was. */ do_action( 'nfsc_admin_section_after', $section, $fields ); -
/** * View data of one cart line in the drawer. */ apply_filters( 'nfsc_cart_item_view', $view, $item, $key ); -
/** * Settings that map one-to-one to a CSS variable (key => [variable, unit]). */ apply_filters( 'nfsc_live_css_vars', $vars ); -
/** * Fires once the free plugin's classes are loaded, before any component hooks * are registered. Add-ons (NanCart Pro) register their filters here. */ do_action( 'nfsc_loaded' ); -
/** * After NanCart asked caching plugins to clear their pages. */ do_action( 'nfsc_page_caches_purged', $reason ); -
/** * Whether NanCart clears page caches. */ apply_filters( 'nfsc_purge_page_caches', true, $reason ); -
/** * Sanitize a custom field type registered by an add-on. */ apply_filters( "nfsc_sanitize_{$type}", sanitize_text_field( is_scalar( $value ) ? (string) $value : '' ), $value, $field ); -
/** * Ready-made cart styles. Each has name, about, swatches and values (setting * => value). */ apply_filters( 'nfsc_style_presets', $styles ); -
/** * Filter NanCart access for a user. */ apply_filters( 'nfsc_user_access', $allowed, $area, $user ); -
apply_filters( 'nfsc_can_change_options', true, $item, $key ); -
apply_filters( 'nfsc_can_change_quantity', true, $item, $key ); -
apply_filters( 'nfsc_can_remove_item', true, $item, $key ); -
apply_filters( 'nfsc_pro_active', false ); -
apply_filters( 'woocommerce_add_to_cart_validation', true, $parent_id, $quantity, $variation_id, $variation ); -
do_action( 'breeze_clear_all_cache' ); -
do_action( 'cache_enabler_clear_complete_cache' ); -
do_action( 'litespeed_purge_all' ); -
do_action( 'nfsc_admin_enqueue' ); -
do_action( 'nfsc_admin_panel_after', $slug ); -
do_action( 'nfsc_admin_panel_before', $slug ); -
apply_filters( 'nfsc_admin_script_data', array( 'previewUrl' => Preview::url(), 'previewNonce' => wp_create_nonce( Preview::NONCE ), 'ajaxUrl' => admin_url( 'admin-ajax.php' ), 'searchNonce' => wp_create_nonce( 'nfsc_product_search' ), 'cssVars' => Preview::live_css_vars(), 'i18n' => array( 'previewFailed' => __( 'The preview could not load.', 'nanflows-sliding-cart' ), 'retry' => __( 'Try again', 'nanflows-sliding-cart' ), 'typeMore'... ); -
apply_filters( 'nfsc_admin_tabs', $tabs ); -
apply_filters( 'nfsc_ajax_endpoints', array( 'nfsc_refresh' => array( __CLASS__, 'refresh' ), 'nfsc_add_item' => array( __CLASS__, 'add_item' ), 'nfsc_update_qty' => array( __CLASS__, 'update_qty' ), 'nfsc_remove_item' => array( __CLASS__, 'remove_item' ), 'nfsc_apply_coupon' => array( __CLASS__, 'apply_coupon' ), 'nfsc_remove_coupon' => array( __CLASS__, 'remove_coupon' ), 'nfsc_product_options' => array( __CLASS__, 'product_optio... ); -
apply_filters( 'nfsc_cart_item_flags', array( '_nfsc_upsell', '_nfsc_free_gift', '_nfsc_addon' ) ); -
apply_filters( 'nfsc_convert_amount', (float) $amount ); -
apply_filters( 'nfsc_css_variables', $vars ); -
apply_filters( 'nfsc_direct_add_types', array( 'simple', 'subscription' ) ); -
do_action( 'nfsc_drawer_after_coupon', $args ); -
do_action( 'nfsc_drawer_after_header', $args ); -
do_action( 'nfsc_drawer_after_items', $args ); -
do_action( 'nfsc_drawer_before_items', $args ); -
do_action( 'nfsc_drawer_before_summary', $args ); -
do_action( 'nfsc_empty_after' ); -
do_action( 'nfsc_enqueue_assets' ); -
do_action( 'nfsc_express_checkout' ); -
do_action( 'nfsc_initialized' ); -
apply_filters( 'nfsc_is_active', $active ); -
apply_filters( 'nfsc_is_auxiliary_item', false, $item ); -
do_action( 'nfsc_item_after', $args ); -
apply_filters( 'nfsc_locked_tabs', $tabs ); -
apply_filters( 'nfsc_map_product_id', $product_id ); -
apply_filters( 'nfsc_open_selectors', $selectors ); -
do_action( 'nfsc_order_recorded', $order, $lines, $views ); -
apply_filters( 'nfsc_override_wc_add_behaviour', true ); -
apply_filters( 'nfsc_page_allows_drawer', true ); -
apply_filters( 'nfsc_preview_products', $products ); -
apply_filters( 'nfsc_pro_url', 'https://nanflows.com/products/nanflows-sliding-cart' ); -
apply_filters( 'nfsc_product_is_available', $product->is_purchasable(), $product ); -
apply_filters( 'nfsc_product_needs_page', false, $check ? $check : $product ); -
apply_filters( 'nfsc_script_data', array( 'endpoints' => $endpoints, 'autoOpen' => Settings::enabled( 'auto_open' ), 'openOnLoad' => $open_on_load || self::is_preview(), 'ajaxSingle' => Settings::enabled( 'ajax_single_add' ), 'openSelectors' => implode( ',', self::open_selectors() ), 'cartLinks' => Settings::enabled( 'open_cart_links' ), 'version' => self::markup_version(), 'isProduct' => is_product(), 'cartUrl' => wc_get_cart_u... ); -
do_action( 'nfsc_settings_saved', $clean ); -
apply_filters( 'nfsc_settings_schema', self::base_schema() ); -
do_action( 'nfsc_shopper_removed_coupon', $code ); -
do_action( 'nfsc_shopper_removed_item', $item, $key ); -
apply_filters( 'nfsc_summary_rows', $rows ); -
apply_filters( 'nfsc_template_path', $template, $name, $args ); -
do_action( 'rt_nginx_helper_purge_all' ); -
do_action( 'swcfpc_purge_cache' ); -
apply_filters( 'wc_aelia_cs_convert', $amount, $base, get_woocommerce_currency() ); -
apply_filters( 'wcml_raw_price_amount', $amount ); -
apply_filters( 'woocommerce_add_to_cart_fragments', array( 'div.widget_shopping_cart_content' => '<div class="widget_shopping_cart_content">' . $mini_cart . '</div>' ) ); -
do_action( 'woocommerce_ajax_added_to_cart', $parent_id ); -
apply_filters( 'woocommerce_cart_item_name', $product->get_name(), $item, $key ); -
apply_filters( 'woocommerce_cart_item_permalink', $product->is_visible() ? ( $product instanceof \WC_Product_Variation ? $product->get_permalink( $item ) : $product->get_permalink() ) : '', $item, $key ); -
apply_filters( 'woocommerce_cart_item_subtotal', WC()->cart->get_product_subtotal( $product, $qty ), $item, $key ); -
apply_filters( 'woocommerce_cart_item_thumbnail', $product->get_image( 'woocommerce_thumbnail' ), $item, $key ); -
apply_filters( 'woocommerce_quantity_input_max', $product->get_max_purchase_quantity(), $product ); -
apply_filters( 'woocommerce_quantity_input_min', $product->get_min_purchase_quantity(), $product ); -
apply_filters( 'woocommerce_quantity_input_step', 1, $product ); -
apply_filters( 'woocommerce_update_cart_validation', true, $key, $item, $quantity ); -
apply_filters( 'woocommerce_variation_option_name', $label, null, $name, $product ); -
apply_filters( 'woocommerce_widget_cart_item_visible', true, $item, $key ); -
woocommerce_widget_shopping_cart_after_buttons
action Used by 26 plugins β Copy link Customise this hookdo_action( 'woocommerce_widget_shopping_cart_after_buttons' ); -
woocommerce_widget_shopping_cart_buttons
action Used by 21 plugins β Copy link Customise this hookdo_action( 'woocommerce_widget_shopping_cart_buttons' ); -
do_action( 'wphb_clear_page_cache' ); -
apply_filters( 'wpml_object_id', $product_id, 'product', true );
Generated from Nanflows Sliding Cart'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: