Anticipo 1.3.1 has 38 actions and 60 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 Anticipo fires an action
add_action( 'anticipo_po_order_released', function( $order, $released, $fully_released ) {
// Your code runs here.
}, 10, 3 );
// Change a value Anticipo is about to use
add_filter( 'anticipo_po_validate_cart_item', function( $value, $config, $arg3 ) {
// Change $value here.
return $value;
}, 10, 3 );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 result of validating a pre-ordered line. */ apply_filters( 'anticipo_po_validate_cart_item', true, $config, array( 'quantity' => $quantity ) ); -
/** * Fires after an order's release wave is complete. */ do_action( 'anticipo_po_order_released', $order, $released, $fully_released ); -
/** * Fires after an order's lines are released but before the order is moved on. * Extensions that collect money after release do their work here and report * back through `anticipo_po_release_wave_balance`. */ do_action( 'anticipo_po_release_wave', $order, $released, $product_id ); -
/** * Filter the amount left to collect after a release wave. */ apply_filters( 'anticipo_po_release_wave_balance', 0.0, $order, $released ); -
/** * Filter the order status applied once every pre-ordered line is released. */ apply_filters( 'anticipo_po_released_order_status', $target, $order, $balance ); -
/** * Filter the action buttons shown against a customer's pre-order. */ apply_filters( 'anticipo_po_account_row_actions', '', $record ); -
/** * Handle a custom Pre-orders admin action. */ do_action( 'anticipo_po_admin_action', $action ); -
/** * Filter the admin notices the Pre-orders screen can show. */ apply_filters( 'anticipo_po_admin_notices', $notices, $done, $failed ); -
/** * Filter the tabs on the Pre-orders admin page. */ apply_filters( 'anticipo_po_admin_tabs', array( 'preorders' => __( 'Pre-orders', 'anticipo-pre-orders-for-woocommerce' ), 'settings' => __( 'Settings', 'anticipo-pre-orders-for-woocommerce' ), 'status' => __( 'Status', 'anticipo-pre-orders-for-woocommerce' ), 'docs' => __( 'Documentation', 'anticipo-pre-orders-for-woocommerce' ), ) ); -
/** * Fires at the end of the single product pre-order block. */ do_action( 'anticipo_po_after_product_notice', $product, $config ); -
/** * Filter the amount charged at checkout for a pre-ordered line. */ apply_filters( 'anticipo_po_amount_due_now', (float) $line_total, (float) $line_total, $config ); -
/** * Filter the availability sentence shown to shoppers. */ apply_filters( 'anticipo_po_availability_message', anticipo_po_merge_tags( $template, $config, $product ), $config, $product ); -
/** * Filter the pre-order badge label. */ apply_filters( 'anticipo_po_badge_text', $text, $product, $config ); -
/** * Filter the record statuses whose balance still counts as owed. */ apply_filters( 'anticipo_po_balance_statuses', array( Anticipo_PO_Preorder::STATUS_PENDING, Anticipo_PO_Preorder::STATUS_ACTIVE, Anticipo_PO_Preorder::STATUS_RELEASED, ) ); -
/** * Fires above the pre-orders list, for buttons that act on the current * filters. */ do_action( 'anticipo_po_before_preorders_list', Anticipo_PO_List_Table::filter_query_args() ); -
/** * Filter the pre-order add to cart button label. */ apply_filters( 'anticipo_po_button_text', anticipo_po_merge_tags( $label, $config, $product ), $product, $config ); -
/** * Filter whether an order is cancelled once every pre-ordered line on it has * been cancelled. */ apply_filters( 'anticipo_po_cancel_empty_order', true, $order ); -
/** * Filter the amount the current cart will owe after release. */ apply_filters( 'anticipo_po_cart_balance', 0.0 ); -
/** * Filter the label of the amount collected after release, shown in the block * cart and checkout totals. */ apply_filters( 'anticipo_po_cart_balance_title', __( 'Due on release', 'anticipo-pre-orders-for-woocommerce' ) ); -
/** * Filter the pre-order data attached to a cart item. */ apply_filters( 'anticipo_po_cart_item_data', $cart_item_data['anticipo_po'], $product, $config ); -
/** * Filter the pre-order rows shown under a cart line. */ apply_filters( 'anticipo_po_cart_item_data_display', $item_data, $cart_item ); -
/** * Filter the sentences shown in the cart and checkout pre-order notice. */ apply_filters( 'anticipo_po_cart_notice_lines', $lines ); -
/** * Filter the available billing modes. */ apply_filters( 'anticipo_po_charge_modes', array( Anticipo_PO_Preorder::CHARGE_UPFRONT => __( 'Pay in full at checkout', 'anticipo-pre-orders-for-woocommerce' ), ) ); -
/** * Fires at the end of the nightly pre-order maintenance sweep. */ do_action( 'anticipo_po_daily_maintenance_complete' ); -
/** * Filter the default settings. */ apply_filters( 'anticipo_po_default_settings', array( 'enabled' => 'yes', 'button_text' => __( 'Pre-order now', 'anticipo-pre-orders-for-woocommerce' ), 'availability_text' => __( 'Ships on {date}', 'anticipo-pre-orders-for-woocommerce' ), 'tba_text' => __( 'Release date to be announced', 'anticipo-pre-orders-for-woocommerce' ), 'show_badge' => 'yes', 'badge_text' => __( 'Pre-order', 'anticipo-pre-orders-for-woocommerce' ), 'show_countdown'... ); -
/** * Filter the sentence that explains how customers pay, in the quick start of * the documentation. */ apply_filters( 'anticipo_po_docs_payment_sentence', __( 'Customers pay in full at checkout.', 'anticipo-pre-orders-for-woocommerce' ) ); -
/** * Fires after the built-in documentation sections, for extensions that * document their own features on the same tab. */ do_action( 'anticipo_po_docs_sections' ); -
/** * Filter whether the documentation ends with the note about the paid edition. * The paid edition switches it off. */ apply_filters( 'anticipo_po_docs_show_pro_note', ! defined( 'ANTICIPO_PO_IS_PRO' ) ); -
/** * Filter the sentence that explains how variations are configured. */ apply_filters( 'anticipo_po_docs_variations_sentence', __( 'Variable products inherit the parent product settings for every variation.', 'anticipo-pre-orders-for-woocommerce' ) ); -
/** * Fires inside a pre-order email, after the pre-order table. */ do_action( 'anticipo_po_email_after_table', $order, $email ); -
/** * Fires inside a pre-order email, before the pre-order table. */ do_action( 'anticipo_po_email_before_table', $order, $email ); -
/** * Filter the body copy of a pre-order email before merge tags run. */ apply_filters( 'anticipo_po_email_body', $body, $this ); -
/** * Filter the pre-order emails registered with WooCommerce. */ apply_filters( 'anticipo_po_email_classes', $emails ); -
/** * Filter the pre-order emails the plugin registers. */ apply_filters( 'anticipo_po_email_definitions', array( 'customer_preorder_confirmed' => array( 'class' => 'Anticipo_PO_Email_Customer_Preorder_Confirmed', 'file' => 'class-anticipo-po-email-customer-preorder-confirmed.php', 'audience' => 'customer', 'description' => __( 'Sent as soon as a pre-order is paid for, confirming what was reserved and when it arrives.', 'anticipo-pre-orders-for-woocommerce' ), ), 'customer_date_changed' => array( 'c... ); -
/** * Filter the merge tags available inside pre-order emails. */ apply_filters( 'anticipo_po_email_merge_tags', $tags, $this ); -
/** * Filter the payment link shown as a button inside a pre-order email. */ apply_filters( 'anticipo_po_email_payment_url', '', $this ); -
/** * Filter the recipient of a pre-order email. */ apply_filters( 'anticipo_po_email_recipient', $recipient, $order, $this ); -
/** * Fires after a pre-order email has been handed to the mailer. */ do_action( 'anticipo_po_email_sent', $this, $order, $context ); -
/** * Filter whether a pre-order product is forced in stock. */ apply_filters( 'anticipo_po_force_in_stock', true, $product ); -
/** * Filter whether an order moved to Processing while pre-ordered lines still * wait for release is sent to the pre-order status. */ apply_filters( 'anticipo_po_hold_processing_order', true, $order, $old_status ); -
/** * Filter whether translated products inherit pre-order settings from the * original. Turn this off to configure each language separately. */ apply_filters( 'anticipo_po_inherit_translated_settings', true, $product ); -
/** * Filter how many orders a manual release handles in the request before the * rest goes to the background queue. */ apply_filters( 'anticipo_po_inline_release_orders', 10 ); -
/** * Fires after the plugin finishes installing or reinstalling. */ do_action( 'anticipo_po_installed' ); -
/** * Filter whether a product is currently purchasable as a pre-order. */ apply_filters( 'anticipo_po_is_preorder', $is_preorder, $product, $config ); -
/** * Fires after the plugin switches language for a background job. */ do_action( 'anticipo_po_language_switched', $language ); -
/** * Filter the amount still to collect on a pre-ordered line. */ apply_filters( 'anticipo_po_line_balance', 0.0, $item, $order ); -
/** * Filter the amount a pre-ordered line counts as paid. */ apply_filters( 'anticipo_po_line_paid_amount', (float) $item->get_total() + (float) $item->get_total_tax(), $item, $order ); -
/** * Render a custom column on the pre-orders list table. */ apply_filters( 'anticipo_po_list_table_column', '', $item, $column_name ); -
/** * Fires once every Anticipo service is registered. */ do_action( 'anticipo_po_loaded', $this ); -
/** * Fires after an entry is written to the pre-order activity log. */ do_action( 'anticipo_po_logged', $level, $code, $message, $context ); -
/** * Filter the merge tag replacements used in front end pre-order messages. */ apply_filters( 'anticipo_po_merge_tags', $replacements, $config, $product ); -
/** * Filter the message shown when a mixed cart is rejected. */ apply_filters( 'anticipo_po_mixed_cart_block_message', __( 'Pre-order items must be purchased on their own. Please place a separate order for the items that are in stock.', 'anticipo-pre-orders-for-woocommerce' ) ); -
/** * Filter the statuses that count as an outstanding commitment. */ apply_filters( 'anticipo_po_open_statuses', array( self::STATUS_PENDING, self::STATUS_ACTIVE, self::STATUS_RELEASED ) ); -
/** * Fires when an order's pre-orders become confirmed. */ do_action( 'anticipo_po_order_preorders_confirmed', $order, $records ); -
/** * Fires once pre-order records exist for a new order. */ do_action( 'anticipo_po_order_preorders_created', $order, $records ); -
/** * Filter the order statuses registered by the plugin. */ apply_filters( 'anticipo_po_order_status_definitions', $definitions ); -
/** * Filter the order status applied when a pre-order is paid for. */ apply_filters( 'anticipo_po_payment_complete_status', $preorder_status, $order, $status ); -
/** * Fires when a pre-order record enters a specific status. */ do_action( "anticipo_po_preorder_status_{$new_status}", $this, $old_status ); -
/** * Fires whenever a pre-order record changes status. */ do_action( 'anticipo_po_preorder_status_changed', $this, $new_status, $old_status ); -
/** * Filter a product's resolved pre-order configuration. */ apply_filters( 'anticipo_po_product_config', $config, $product ); -
/** * Filter whether a product takes pre-orders before the rest of its * configuration is resolved. */ apply_filters( 'anticipo_po_product_enabled', 'yes' === $read( '_anticipo_po_enabled', 'no' ), $product ); -
/** * Filter the product meta keys owned by the plugin. */ apply_filters( 'anticipo_po_product_meta_keys', array( '_anticipo_po_enabled', '_anticipo_po_availability_date', '_anticipo_po_date_tba', '_anticipo_po_cutoff_date', '_anticipo_po_charge_mode', '_anticipo_po_button_text', '_anticipo_po_availability_message', '_anticipo_po_badge_text', '_anticipo_po_auto_release', ) ); -
/** * Fires at the end of the product Pre-order panel. */ do_action( 'anticipo_po_product_panel', $product ); -
/** * Filter the SQL WHERE clauses and bound parameters for a pre-order query. */ apply_filters( 'anticipo_po_query_clauses', array( 'where' => $where, 'params' => $params, ), $args ); -
/** * Fires after a pre-order line is cancelled. */ do_action( 'anticipo_po_record_cancelled', $record, $reason ); -
/** * Fires after a single pre-order line is released. */ do_action( 'anticipo_po_record_released', $record, $order ); -
/** * Fires when a product's release date moves and open pre-orders exist. */ do_action( 'anticipo_po_release_date_changed', $product_id, $current, $recorded, $variation_id ); -
/** * Fires when a product release run completes. */ do_action( 'anticipo_po_release_finished', $product_id, $stats ); -
/** * Fires when a product release run begins. */ do_action( 'anticipo_po_release_started', $product_id, $run_id, $pending ); -
/** * Fires to dispatch the store owner's run summary email. */ do_action( 'anticipo_po_release_summary', $product_id, $stats ); -
/** * Render a custom Pre-orders admin tab. */ do_action( "anticipo_po_render_tab_{$tab}" ); -
/** * Filter the sanitised settings before they are stored. */ apply_filters( 'anticipo_po_sanitize_settings', $clean, $raw ); -
/** * Fires while a product's pre-order settings are being saved. */ do_action( 'anticipo_po_save_product_meta', $product, $fields ); -
/** * Filter whether a pre-order email should be sent. */ apply_filters( 'anticipo_po_send_email', true, $email_id, $order, $args ); -
/** * Filter a single resolved setting. */ apply_filters( "anticipo_po_setting_{$key}", $value, $key ); -
/** * Filter the resolved settings array. */ apply_filters( 'anticipo_po_settings', array_merge( self::defaults(), $stored ) ); -
/** * Filter the settings screen sections and fields. */ apply_filters( 'anticipo_po_settings_fields', $fields ); -
/** * Render extra controls at the bottom of the pre-order settings form. */ do_action( 'anticipo_po_settings_form_end', $values ); -
/** * Fires after settings are saved. */ do_action( 'anticipo_po_settings_saved', $clean ); -
/** * Filter the products listed by the [anticipo_preorder_products] shortcode. */ apply_filters( 'anticipo_po_shortcode_product_ids', wp_list_pluck( $items, 'id' ), $category, $orderby ); -
/** * Short circuit the release of a single pre-order line. */ apply_filters( 'anticipo_po_should_release_record', true, $record, $order ); -
/** * Filter the pre-order status checks. */ apply_filters( 'anticipo_po_status_checks', $checks ); -
/** * Filter the list of pre-order record statuses. */ apply_filters( 'anticipo_po_statuses', array( self::STATUS_PENDING => __( 'Awaiting payment confirmation', 'anticipo-pre-orders-for-woocommerce' ), self::STATUS_ACTIVE => __( 'Confirmed, waiting for release', 'anticipo-pre-orders-for-woocommerce' ), self::STATUS_RELEASED => __( 'Released', 'anticipo-pre-orders-for-woocommerce' ), self::STATUS_COMPLETED => __( 'Completed', 'anticipo-pre-orders-for-woocommerce' ), self::STATUS_CANCELL... ); -
/** * Filter the resolved template path. */ apply_filters( 'anticipo_po_template_path', $located, $template, $args ); -
/** * Fires when the schema version changes, before the new version is stored. */ do_action( 'anticipo_po_upgrade', $installed ); -
do_action( 'woocommerce_email_customer_details', $order, $sent_to_admin, false, $email ); -
do_action( 'woocommerce_email_order_meta', $order, $sent_to_admin, false, $email ); -
do_action( 'wpml_switch_language', $language ); -
do_action( 'woocommerce_email_before_order_table', $order, $sent_to_admin, false, $email ); -
do_action( 'woocommerce_email_header', $email_heading, $email ); -
do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, false, $email ); -
apply_filters( 'wpml_current_language', null ); -
apply_filters( 'wpml_default_language', null ); -
apply_filters( 'wpml_object_id', $product_id, $type, true, $default ); -
do_action( 'wpml_register_single_string', 'anticipo-pre-orders-for-woocommerce', $name, $value ); -
apply_filters( 'wpml_translate_single_string', $value, 'anticipo-pre-orders-for-woocommerce', $name );
Generated from Anticipo'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: