ALD 2.2.8 has 9 actions and 83 filters, read directly from its source code on Nov 20, 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 ALD fires an action
add_action( 'product_variation_linked', function( $arg1 ) {
// Your code runs here.
}, 10, 1 );
// Change a value ALD is about to use
add_filter( 'wp_count_posts', function( $counts, $type, $perm ) {
// Change $counts here.
return $counts;
}, 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.
Changes by version
2.2.7 → 2.2.8 · Nov 20, 2026 · 3 added, 0 removed
Added
All hooks
-
/** * This filter is documented in wp-includes/post.php */ apply_filters( 'wp_count_posts', $counts, $type, $perm ); -
/** * Filters whether or not to add a `__trashed` suffix to trashed posts that * match the name of the updated post. */ apply_filters( 'add_trashed_suffix_to_trashed_posts', true, $post_name, $post_id ); -
/** * This filter is documented in wp-includes/query.php */ apply_filters_ref_array( 'comment_feed_groupby', array( '', &$this ) ); -
/** * This filter is documented in wp-includes/query.php */ apply_filters_ref_array( 'comment_feed_join', array( '', &$this ) ); -
/** * This filter is documented in wp-includes/query.php */ apply_filters_ref_array( 'comment_feed_limits', array( 'LIMIT ' . get_option( 'posts_per_rss' ), &$this ) ); -
/** * This filter is documented in wp-includes/query.php */ apply_filters_ref_array( 'comment_feed_orderby', array( 'comment_date_gmt DESC', &$this ) ); -
/** * This filter is documented in wp-includes/query.php */ apply_filters_ref_array( 'comment_feed_where', array( "WHERE comment_post_ID = '{$this->posts[0]->ID}' AND comment_approved = '1'", &$this ) ); -
/** * Filters whether an attachment query should include filenames or not. */ apply_filters( 'wp_allow_query_attachment_by_filename', false ); -
apply_filters( 'plugin_locale', get_locale(), 'woo-alidropship' ); -
apply_filters( "{$this->identifier}_cron_interval", 5 ); -
apply_filters( 'ald_cancel_set_product_gallery', false, $thumb_id, $data ); -
do_action( 'product_variation_linked', $variation->save() ); -
apply_filters( 'villatheme_woo_alidropship_sync_ali_order_carrier_name', $carrier_name ); -
apply_filters( 'villatheme_woo_alidropship_sync_ali_order_carrier_url', $carrier_url ); -
apply_filters( "{$this->identifier}_default_time_limit", 20 ); -
apply_filters( "{$this->identifier}_memory_exceeded", $return ); -
apply_filters( "{$this->identifier}_queue_lock_time", $lock_duration ); -
apply_filters( "{$this->identifier}_time_exceeded", $return ); -
apply_filters( 'ald_dispatch_after_make_variation_data', $dispatch, $variation_id, $product_variation, $disable_background_process ); -
apply_filters( 'ald_get_post_status', $post_status, $post ); -
apply_filters( 'ald_villatheme_api_url', $url, $type ); -
apply_filters_ref_array( 'found_posts', array( $this->found_posts, &$this ) ); -
apply_filters_ref_array( 'found_posts_query', array( 'SELECT FOUND_ROWS()', &$this ) ); -
apply_filters( 'https_local_ssl_verify', false ); -
apply_filters_ref_array( 'post_limits', array( $limits, &$this ) ); -
apply_filters_ref_array( 'post_limits_request', array( $limits, &$this ) ); -
apply_filters_ref_array( 'posts_clauses', array( compact( $pieces ), &$this ) ); -
apply_filters_ref_array( 'posts_clauses_request', array( compact( $pieces ), &$this ) ); -
apply_filters_ref_array( 'posts_distinct', array( $distinct, &$this ) ); -
apply_filters_ref_array( 'posts_distinct_request', array( $distinct, &$this ) ); -
apply_filters_ref_array( 'posts_fields', array( $fields, &$this ) ); -
apply_filters_ref_array( 'posts_fields_request', array( $fields, &$this ) ); -
apply_filters_ref_array( 'posts_groupby', array( $groupby, &$this ) ); -
apply_filters_ref_array( 'posts_groupby_request', array( $groupby, &$this ) ); -
apply_filters_ref_array( 'posts_join', array( $join, &$this ) ); -
apply_filters_ref_array( 'posts_join_paged', array( $join, &$this ) ); -
apply_filters_ref_array( 'posts_join_request', array( $join, &$this ) ); -
apply_filters_ref_array( 'posts_orderby', array( $orderby, &$this ) ); -
apply_filters_ref_array( 'posts_orderby_request', array( $orderby, &$this ) ); -
apply_filters_ref_array( 'posts_pre_query', array( null, &$this ) ); -
apply_filters_ref_array( 'posts_request', array( $this->request, &$this ) ); -
apply_filters( 'posts_request_ids', $this->request, $this ); -
apply_filters_ref_array( 'posts_results', array( $this->posts, &$this ) ); -
apply_filters_ref_array( 'posts_search', array( $search, &$this ) ); -
apply_filters( 'posts_search_orderby', $search_orderby, $this ); -
apply_filters_ref_array( 'posts_where', array( $where, &$this ) ); -
apply_filters_ref_array( 'posts_where_paged', array( $where, &$this ) ); -
apply_filters_ref_array( 'posts_where_request', array( $where, &$this ) ); -
do_action_ref_array( 'pre_get_posts', array( &$this ) ); -
apply_filters( 'pre_trash_post', null, $post ); -
apply_filters( 'split_the_query', $split_the_query, $this ); -
apply_filters_ref_array( 'the_posts', array( $this->posts, &$this ) ); -
apply_filters_ref_array( 'the_preview', array( $this->posts[0], &$this ) ); -
apply_filters( 'vi_wad_admin_ajax_nonce', wp_create_nonce( 'woo_alidropship_admin_ajax' ) ); -
apply_filters( 'vi_wad_aliexpress_shipping_companies', array( 'AE_CAINIAO_STANDARD' => "Cainiao Expedited Standard", 'AE_CN_SUPER_ECONOMY_G' => "Cainiao Super Economy Global", 'ARAMEX' => "ARAMEX", 'CAINIAO_CONSOLIDATION_SA' => "AliExpress Direct(SA)", 'CAINIAO_CONSOLIDATION_AE' => "AliExpress Direct(AE)", 'CAINIAO_ECONOMY' => "AliExpress Saver Shipping", 'CAINIAO_PREMIUM' => "AliExpress Premium Shipping", 'CAINIAO_STANDARD' => "AliExpress Standard... ); -
do_action( 'vi_wad_cleaned_imported_draft_payload', $ald_product_id, $woo_id ); -
apply_filters( 'vi_wad_cleanup_imported_draft_clear_content', true, $ald_product_id, $woo_id ); -
apply_filters( 'vi_wad_cleanup_imported_draft_meta_keys', array( '_vi_wad_description_images', '_vi_wad_variation_images', '_vi_wad_list_attributes', '_vi_wad_split_variations', '_vi_wad_map_woo_id', ), $ald_product_id, $woo_id ); -
apply_filters( 'vi_wad_fulfillment_customer_info', $result, $order ); -
apply_filters( 'vi_wad_get_exchange_rate', round( $rate, $decimals ), $api ); -
apply_filters( 'vi_wad_image_file_name', $img_name.$matches[1], $post_parent, $post_title ); -
do_action( 'vi_wad_import_list_before_import', $product_data ); -
do_action( 'vi_wad_import_list_product_message', $product ); -
apply_filters( 'vi_wad_import_product_description', $description, $data ); -
apply_filters( 'vi_wad_import_product_short_description', $short_description, $data ); -
apply_filters( 'vi_wad_import_product_specifications', $specsModule, $data ); -
apply_filters( 'vi_wad_processed_price', $price, $is_sale_price, $original_price ); -
apply_filters( 'vi_wad_rest_check_product_read_permission', wc_rest_check_post_permissions('product', 'read', $product_id) ); -
apply_filters( 'vi_wad_search_product_statuses', $post_status ); -
apply_filters( 'vi_wad_verify_ajax_nonce', false, $page ); -
apply_filters( 'vi_woo_alidropship_order_item_tracking_data', $current_tracking_data, $item_id, $order_id ); -
vi_woo_orders_tracking_current_carrier_name
filter Used by 2 plugins → Copy link Customise this hookapply_filters( 'vi_woo_orders_tracking_current_carrier_name', $current_tracking_data['carrier_name'], $item_id, $order_id ); -
vi_woo_orders_tracking_current_carrier_slug
filter Used by 2 plugins → Copy link Customise this hookapply_filters( 'vi_woo_orders_tracking_current_carrier_slug', $current_tracking_data['carrier_slug'], $item_id, $order_id ); -
vi_woo_orders_tracking_current_tracking_number
filter Used by 2 plugins → Copy link Customise this hookapply_filters( 'vi_woo_orders_tracking_current_tracking_number', $current_tracking_data['tracking_number'], $item_id, $order_id ); -
vi_woo_orders_tracking_current_tracking_url
filter Used by 2 plugins → Copy link Customise this hookapply_filters( 'vi_woo_orders_tracking_current_tracking_url', $current_tracking_data['carrier_url'], $item_id, $order_id ); -
apply_filters( 'villatheme_check_requires', wp_parse_args( $args, [ 'plugin_name' => '', 'php_version' => '', 'wp_version' => '', 'wc_version' => '', 'require_plugins' => [], ] ) ); -
apply_filters( 'villatheme_form_ads_data', ob_get_clean() ); -
do_action( 'villatheme_support_woo-alidropship' ); -
apply_filters( 'viwad_pre_delete_post', null, $post, $force_delete ); -
apply_filters( 'wooaliexpressdropship_params', $this->params ); -
apply_filters( "wooaliexpressdropship_params_default_{$name}", $this->default[ $name ] ); -
do_action( 'woocommerce_auth_page_header' ); -
apply_filters( 'woocommerce_countries', include WC()->plugin_path() . '/i18n/countries.php' ); -
apply_filters( 'woocommerce_new_order_note_data', array( 'comment_post_ID' => $order_id, 'comment_author' => '', 'comment_author_email' => __( 'WooCommerce', 'woocommerce' ), 'comment_author_url' => '', 'comment_content' => $note, 'comment_agent' => 'WooCommerce', 'comment_type' => 'order_note', 'comment_parent' => 0, 'comment_approved' => 1, ), array( 'order_id' => $order_id, 'is_customer_note' => 0, ) ); -
do_action( 'woocommerce_product_set_visibility', $product_id, $catalog_visibility ); -
apply_filters( 'woocommerce_sort_countries', true ); -
apply_filters( 'woocommerce_states', include WC()->plugin_path() . '/i18n/states.php' ); -
apply_filters( 'wp_insert_post_empty_content', $maybe_empty, $postarr ); -
apply_filters( 'wp_insert_post_parent', $post_parent, $post_id, $new_postarr, $postarr );
Generated from ALD'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: