W2S Sync 3.3.1 has 17 actions and 47 filters, read directly from its source code on Nov 18, 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 W2S Sync fires an action
add_action( 'w2ssyn_reliability_check_shopify_products', function( $arg1 ) {
// Your code runs here.
}, 10, 1 );
// Change a value W2S Sync is about to use
add_filter( 'w2ssyn_api_date_filter_url', function( $w2ssyn_url, $w2ssyn_entity ) {
// Change $w2ssyn_url here.
return $w2ssyn_url;
}, 10, 2 );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 final list/fetch URL after default date rules. */ apply_filters( 'w2ssyn_api_date_filter_url', $w2ssyn_url, $w2ssyn_entity ); -
/** * Filter per-pairing sync config before execution (Pro: module gates, vendor * scope). */ apply_filters( 'w2ssyn_pairing_sync_config', $pairing_sync_config, (int) $pairing->id, $sync_config ); -
/** * Filter the Pro upgrade base URL. */ apply_filters( 'w2ssyn_pro_upgrade_base_url', w2ssyn_get_default_pro_upgrade_base_url() ); -
/** * Low stock detection (Shopify side) using the already-fetched payload. This * avoids extra API calls and triggers only when the user enabled low stock * alerts. */ do_action( 'w2ssyn_reliability_check_shopify_products', array( $w2ssyn_shopify_product ) ); -
/** * Low stock detection (Woo side) using the already-fetched payload. This * avoids extra API calls and triggers only when the user enabled low stock * alerts. */ do_action( 'w2ssyn_reliability_check_woo_products', $chunk ); -
/** * Filter the full payload sent to Shopify for order create/update (REST). */ apply_filters( 'w2s_modify_order_payload', $payload, $woo_order_id ); -
/** * Allow opting out of payload storage (e.g. high-volume sites). */ apply_filters( 'w2s_store_payload', true, $entity_type, $action ); -
/** * Fires after a module's configured operations finish (success or partial). */ do_action( 'w2ssyn_after_module_sync', (string) $w2ssyn_module, (int) $w2ssyn_pairing_id, array( 'direction' => (string) $w2ssyn_sync_direction, 'stopped' => (bool) $w2ssyn_sync_stopped_by_user, 'had_ops' => (bool) $module_had_ops, ) ); -
/** * Fires after all configured modules have been attempted. */ do_action( 'w2ssyn_after_sync_operations', $w2ssyn_sync_config, $w2ssyn_sync_direction, $w2ssyn_pairing_id, $w2ssyn_sync_stopped_by_user ); -
/** * Filter provider dashboard URLs shown in the AI Assistant tab. */ apply_filters( 'w2ssyn_ai_provider_dashboard_catalog', $catalog ); -
/** * Allow custom provider activation detection. */ apply_filters( 'w2ssyn_ai_provider_plugin_active', false, $provider_id ); -
/** * Fires when a paginated source fetch fails or is truncated. */ do_action( 'w2ssyn_api_fetch_failed', (string) $entity, (string) $platform, (string) $message ); -
/** * Fires after Save Configuration persists settings (optional ZIP backup, * etc.). */ do_action( 'w2ssyn_before_save_configuration_sync', $sync_params ); -
/** * Fires immediately before a create/update/delete operation. */ do_action( 'w2ssyn_before_single_operation', (string) $w2ssyn_module, (string) $w2ssyn_operation, (string) $w2ssyn_sync_direction, (int) $w2ssyn_pairing_id ); -
/** * Fires before configured sync modules run (pairing 0 = default single-store). */ do_action( 'w2ssyn_before_sync_operations', $w2ssyn_sync_config, $w2ssyn_sync_direction, $w2ssyn_pairing_id ); -
/** * Filter connected AI providers detected for dashboard redirects. */ apply_filters( 'w2ssyn_connected_ai_providers', $connected ); -
/** * Enable off-site deactivation feedback (sent to Smackcoders only when the * user submits the form). Return false for WooCommerce Marketplace builds (no * telemetry). */ apply_filters( 'w2ssyn_enable_deactivation_feedback', true ); -
/** * Enable the WordPress.org review popup. Return false for WooCommerce * Marketplace builds (no off-Marketplace links). */ apply_filters( 'w2ssyn_enable_review_popup', true ); -
/** * Filter a mapped field value before it is written to the target payload. */ apply_filters( 'w2ssyn_mapped_field_value', $value, $context ); -
/** * Filter pairings before multi-store sync execution. */ apply_filters( 'w2ssyn_multi_store_pairings', $multi_store_pairings, $sync_params['sync_config'] ?? array() ); -
/** * Allow Pro (or other addons) to supply the key without duplicating storage. */ apply_filters( 'w2ssyn_openai_api_key', '' ); -
/** * Filter entity-level sync filters (Pro: vendor scope). */ apply_filters( 'w2ssyn_pairing_entity_filters', $w2ssyn_filters, (string) $w2ssyn_module, $w2ssyn_pairing_id ); -
/** * Allow Pro to apply incremental/watermark query params before the default * date filter. */ apply_filters( 'w2ssyn_pre_api_date_filter_url', $w2ssyn_url, $w2ssyn_entity ); -
/** * Filter whether a product field should be written during this sync. */ apply_filters( 'w2ssyn_product_conflict_should_sync_field', (bool) $should, (string) $field, is_array( $context ) ? $context : array() ); -
/** * Fired after Free deterministic product link (not fuzzy/AI). */ do_action( 'w2ssyn_product_deterministic_linked', array( 'direction' => $direction, 'pairing_id' => absint( $pairing_id ), 'source_product_id' => sanitize_text_field( (string) $source_product_id ), 'target_product_id' => sanitize_text_field( (string) $target_product_id ), 'match_method' => sanitize_text_field( (string) $match_method ), ) ); -
/** * Fires after Shopify credentials are saved successfully (Pro may * auto-register webhooks). */ do_action( 'w2ssyn_shopify_connected', $w2ssyn_store_name ); -
/** * Fires before Shopify keys are removed (Pro may delete Shopify webhook * subscriptions). */ do_action( 'w2ssyn_shopify_disconnected' ); -
/** * Filter incoming Shopify product data using Pro conflict rules. */ apply_filters( 'w2ssyn_shopify_to_woo_product_conflicts', $shopify_product, $woo_product, $context ); -
/** * Whether a sync module should run for this pairing. */ apply_filters( 'w2ssyn_should_sync_module', true, (string) $w2ssyn_module, $w2ssyn_pairing_id ); -
/** * Skip created_at / after defaults when Pro is applying a modification-time * filter. */ apply_filters( 'w2ssyn_skip_default_api_date_filter', false, $w2ssyn_url, $w2ssyn_entity ); -
/** * Collect preview / plan data for a skipped mutation operation. */ do_action( 'w2ssyn_sync_preview_collect', $context ); -
/** * After Free deterministic matching fails, allow Pro fuzzy/AI candidate * review. */ apply_filters( 'w2ssyn_unmatched_product', null, $context ); -
/** * Filter whether W2S writes to WC_Logger. */ apply_filters( 'w2ssyn_wc_debug_logging_enabled', $enabled ); -
/** * Filter local Woo product query args used when REST fetch falls back. */ apply_filters( 'w2ssyn_wc_get_products_query_args', $wc_args, 'product' ); -
/** * Filter the Shopify product update payload using Pro conflict rules. */ apply_filters( 'w2ssyn_woo_to_shopify_product_conflicts', $payload, $woo_product, $shopify_product, $context ); -
do_action( 'w2ssyn_after_pairing_sync', $pairing, 'success', '' ); -
do_action( 'w2ssyn_after_product_sync', $w2ssyn_prod_id, $w2ssyn_new_id, $w2ssyn_shopify_base_url, $w2ssyn_shopify_token, $w2ssyn_pairing_id ); -
apply_filters( 'w2ssyn_audit_log_message_actions', '', $w2ssyn_item ); -
apply_filters( 'w2ssyn_should_write_audit_log', true, $entity_type, $action, $status, $context ); -
apply_filters( 'w2ssyn_backorder_eta_config', $defaults ); -
do_action( 'w2ssyn_before_pairing_sync', $pairing, $pairing_sync_config, $sync_direction ); -
apply_filters( 'w2ssyn_catchup_skip_product_stock', false ); -
apply_filters( 'w2ssyn_field_mapping_registry', $registry, $this ); -
apply_filters( 'w2ssyn_http_request_sslverify', true ); -
apply_filters( 'w2ssyn_pro_features_available', w2ssyn_is_sync_pro_plugin_active() ); -
apply_filters( 'w2ssyn_pro_skip_inventory_sync', false ); -
apply_filters( 'w2ssyn_product_dimensions_config', $defaults ); -
apply_filters( 'w2ssyn_register_free_shopify_webhook_route', true ); -
apply_filters( 'w2ssyn_shopify_api_version', $v ); -
apply_filters( 'w2ssyn_shopify_rate_limit_sleep_seconds', max( 0, (float) $seconds ) ); -
apply_filters( 'w2ssyn_shopify_request_delay_seconds', $base_delay_seconds, $iteration ); -
apply_filters( 'w2ssyn_shopify_to_woo_category_ids', $category_ids, $woo_product_id ); -
apply_filters( 'w2ssyn_shopify_to_woo_variation_conflicts', $shopify_variant, $woo_variation, $context ); -
do_action( 'w2ssyn_shopify_webhook_verified', $topic, $raw ); -
apply_filters( 'w2ssyn_shopify_weight_config', $defaults ); -
apply_filters( 'w2ssyn_should_execute_sync_operation', true, $context ); -
apply_filters( 'w2ssyn_should_perform_mutations', $default, $context ); -
apply_filters( 'w2ssyn_skip_shopify_to_woo_stock_sync', false ); -
apply_filters( 'w2ssyn_supplier_id_to_name', $map ); -
apply_filters( 'w2ssyn_sync_dry_run', false ); -
do_action( 'w2ssyn_sync_failure', $w2ssyn_entity_type, $w2ssyn_message, array( 'action' => $w2ssyn_action, 'status' => $w2ssyn_status, 'pairing_id' => $w2ssyn_pairing_id, 'woo_store_id' => $w2ssyn_woo_store_id, 'shopify_store_id' => $w2ssyn_shopify_store_id, 'entity_id' => $w2ssyn_entity_id, 'run_id' => $w2ssyn_run_resolved, 'audit_log_id' => $w2ssyn_insert_id, 'metrics_eligible' => (bool) $w2ssyn_metrics_eligible, ) ); -
apply_filters( 'w2ssyn_sync_log_extra_data', array(), array( 'entity_type' => $w2ssyn_entity_type, 'action' => $w2ssyn_action, 'status' => $w2ssyn_status, 'message' => $w2ssyn_message, 'pairing_id' => $w2ssyn_pairing_id, 'woo_store_id' => $w2ssyn_woo_store_id, 'shopify_store_id' => $w2ssyn_shopify_store_id, 'entity_id' => $w2ssyn_entity_id, 'vendor_id' => 0, ) ); -
apply_filters( 'w2ssyn_use_field_level_two_way', false, absint( $pairing_id ) ); -
apply_filters( 'w2ssyn_woocommerce_mapping_field_choices', $choices, $entity_type );
Generated from W2S Sync'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: