SquidCore 1.7.1 has 12 actions and 10 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 SquidCore fires an action
add_action( 'infixs_squidcore_connection_changed', function() {
// Your code runs here.
}, 10, 1 );
// Change a value SquidCore is about to use
add_filter( 'infixs_squidcore_danfe_lazy_fetch_limit', 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
-
/** * Fires when the store points to another SquidCore connection (new credential, * other API, none): what was read through the previous one (the account, its * plan, its use) no longer holds. */ do_action( 'infixs_squidcore_connection_changed' ); -
/** * Filters how many simplified DANFE snapshots a print may read from SquidCore * in one request; the other orders print as "being prepared" and are read in * the background. */ apply_filters( 'infixs_squidcore_danfe_lazy_fetch_limit', self::LAZY_FETCH_LIMIT ); -
/** * A preview, an import or an undo of the NCM finished. */ do_action( 'infixs_squidcore_fiscal_import_finished', $run['id'], $run['mode'], $run['counts'] ); -
/** * Fires when an authorized invoice needs the store owner (e.g. the order was * cancelled or refunded). */ do_action( 'infixs_squidcore_invoice_attention', $order->get_id(), $reason ); -
/** * Fires once when the invoice of an order is authorized by SEFAZ. */ do_action( 'infixs_squidcore_invoice_authorized', $order->get_id(), $record->toArray(), $order ); -
/** * Fires when the invoice of an order is cancelled. */ do_action( 'infixs_squidcore_invoice_cancelled', $order->get_id(), $record->toArray(), $order ); -
/** * Filters when the automatic invoice emission of a paid order runs. */ apply_filters( 'infixs_squidcore_invoice_emit_at', $timestamp, $order ); -
/** * Fires when the invoice of an order could not be issued: blocked by pending * items, rejected or denied by SEFAZ, or the request failed. */ do_action( 'infixs_squidcore_invoice_failed', $order->get_id(), $record->state(), $record->message(), $record->reasons() ); -
/** * Fires when SquidCore refuses the invoice of an order because the invoice * limit of the plan was reached. */ do_action( 'infixs_squidcore_invoice_plan_limit_reached', $order->get_id(), $record->planLimit() ); -
/** * Filters the waits between the status checks of an invoice SEFAZ is * processing. */ apply_filters( 'infixs_squidcore_invoice_poll_delays', self::POLL_DELAYS ); -
/** * Fires when the automatic emission of an order invoice is queued. */ do_action( 'infixs_squidcore_invoice_scheduled', $order->get_id(), $timestamp ); -
/** * Filters whether a paid order gets its invoice (NF-e) issued automatically. */ apply_filters( 'infixs_squidcore_invoice_should_emit', true, $order, $trigger ); -
/** * Filters why an order does not get its invoice (NF-e) issued automatically. */ apply_filters( 'infixs_squidcore_invoice_skip_reason', null, $order, $trigger ); -
/** * Fires when the state, the attention or the failure reason of an order * invoice changes in the store. */ do_action( 'infixs_squidcore_invoice_state_changed', $order->get_id(), $record->state(), $record->attention() ); -
/** * Filters whether the customer may see and download the authorized invoice of * an order. */ apply_filters( 'infixs_squidcore_invoice_visible_to_customer', $visible, $order, $record->toArray() ); -
/** * Filters the NCM sent to SquidCore for a product. */ apply_filters( 'infixs_squidcore_product_ncm', $ncm, $product ); -
/** * A Correios Automático NCM was adopted in the background and changed the NCM * on the invoice of the product. */ do_action( 'infixs_squidcore_product_ncm_adopted', $productId ); -
do_action( 'infixs_correios_automatico_order_invoice_failed', (int) $orderId, (string) $message ); -
do_action( 'infixs_correios_automatico_order_invoice_ready', (int) $orderId ); -
infixs_correios_automatico_shipping_item_carrier
filter Used by 2 plugins → Copy link Customise this hookapply_filters( 'infixs_correios_automatico_shipping_item_carrier', null, $item ); -
apply_filters( 'infixs_squidcore_dashboard_script_params', $params ); -
apply_filters( 'infixs_squidcore_order_shipping_carrier', null, $item, $order );
Generated from SquidCore'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: