ChinaDS 2.2.5 has 15 actions and 59 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 ChinaDS fires an action
add_action( 'clean_post_cache', function( $ID, $post ) {
// Your code runs here.
}, 10, 2 );
// Change a value ChinaDS 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.
All hooks
-
/** * This filter is documented in wp-includes/post.php */ apply_filters( 'wp_count_posts', $counts, $type, $perm ); -
/** * Sanitize the value of an option. */ apply_filters( "{$prefix}_admin_settings_sanitize_option", $value, $option, $raw_value ); -
/** * Sanitize the value of an option by option name. */ apply_filters( "{$prefix}_admin_settings_sanitize_option_{$option_name}", $value, $option, $raw_value ); -
/** * Fires immediately after the given post's cache is cleaned. */ do_action( 'clean_post_cache', $post->ID, $post ); -
/** * Filters the number of found posts for the query. */ apply_filters_ref_array( 'found_posts', array( $this->found_posts, &$this ) ); -
/** * Filters the query to run for retrieving the found posts. */ apply_filters_ref_array( 'found_posts_query', array( 'SELECT FOUND_ROWS()', &$this ) ); -
/** * Filters the LIMIT clause of the query. */ apply_filters_ref_array( 'post_limits', array( $limits, &$this ) ); -
/** * Filters the LIMIT clause of the query. */ apply_filters_ref_array( 'post_limits_request', array( $limits, &$this ) ); -
/** * Filters the columns to search in a WP_Query search. */ apply_filters( 'post_search_columns', $search_columns, $q['s'], $this ); -
/** * Filters all query clauses at once, for convenience. */ apply_filters_ref_array( 'posts_clauses', array( compact( $pieces ), &$this ) ); -
/** * Filters all query clauses at once, for convenience. */ apply_filters_ref_array( 'posts_clauses_request', array( compact( $pieces ), &$this ) ); -
/** * Filters the DISTINCT clause of the query. */ apply_filters_ref_array( 'posts_distinct', array( $distinct, &$this ) ); -
/** * Filters the DISTINCT clause of the query. */ apply_filters_ref_array( 'posts_distinct_request', array( $distinct, &$this ) ); -
/** * Filters the SELECT clause of the query. */ apply_filters_ref_array( 'posts_fields', array( $fields, &$this ) ); -
/** * Filters the SELECT clause of the query. */ apply_filters_ref_array( 'posts_fields_request', array( $fields, &$this ) ); -
/** * Filters the GROUP BY clause of the query. */ apply_filters_ref_array( 'posts_groupby', array( $groupby, &$this ) ); -
/** * Filters the GROUP BY clause of the query. */ apply_filters_ref_array( 'posts_groupby_request', array( $groupby, &$this ) ); -
/** * Filters the JOIN clause of the query. */ apply_filters_ref_array( 'posts_join', array( $join, &$this ) ); -
/** * Filters the JOIN clause of the query. */ apply_filters_ref_array( 'posts_join_paged', array( $join, &$this ) ); -
/** * Filters the JOIN clause of the query. */ apply_filters_ref_array( 'posts_join_request', array( $join, &$this ) ); -
/** * Filters the ORDER BY clause of the query. */ apply_filters_ref_array( 'posts_orderby', array( $orderby, &$this ) ); -
/** * Filters the ORDER BY clause of the query. */ apply_filters_ref_array( 'posts_orderby_request', array( $orderby, &$this ) ); -
/** * Filters the completed SQL query before sending. */ apply_filters_ref_array( 'posts_request', array( $this->request, &$this ) ); -
/** * Filters the Post IDs SQL request before sending. */ apply_filters( 'posts_request_ids', $this->request, $this ); -
/** * Filters the raw post results array, prior to status checks. */ apply_filters_ref_array( 'posts_results', array( $this->posts, &$this ) ); -
/** * Filters the search SQL that is used in the WHERE clause of WP_Query. */ apply_filters_ref_array( 'posts_search', array( $search, &$this ) ); -
/** * Filters the ORDER BY used when ordering search results. */ apply_filters( 'posts_search_orderby', $search_orderby, $this ); -
/** * Fires to announce the query's current selection parameters. */ do_action( 'posts_selection', $where . $groupby . $orderby . $limits . $join ); -
/** * Filters the WHERE clause of the query. */ apply_filters_ref_array( 'posts_where', array( $where, &$this ) ); -
/** * Filters the WHERE clause of the query. */ apply_filters_ref_array( 'posts_where_paged', array( $where, &$this ) ); -
/** * Filters the WHERE clause of the query. */ apply_filters_ref_array( 'posts_where_request', array( $where, &$this ) ); -
/** * Filters whether to split the query. */ apply_filters( 'split_the_query', $split_the_query, $this ); -
/** * Filters the array of retrieved posts after they've been fetched and * internally processed. */ apply_filters_ref_array( 'the_posts', array( $this->posts, &$this ) ); -
/** * Fires once a post has been saved. */ do_action( 'wp_insert_post', $post_id, $post, $update ); -
/** * Filters the prefix that indicates that a search term should be excluded from * results. */ apply_filters( 'wp_query_search_exclusion_prefix', '-' ); -
do_action( "{$prefix}_after_field_{$id}" ); -
apply_filters( "{$this->identifier}_cron_interval", 5 ); -
apply_filters( 'chinads_cancel_set_product_gallery', false, $thumb_id, $item ); -
apply_filters( 'tbds_prepare_post_args', $args ); -
do_action( "{$prefix}_{$option['id']}" ); -
do_action( "{$prefix}_admin_field_{$id}", $value, $option ); -
apply_filters( "{$prefix}_pre_update_settings", $update_options ); -
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( 'chinads_dispatch_after_make_variation_data', $dispatch, $variation_id, $product_variation, $disable_background_process ); -
apply_filters( 'chinads_pre_delete_post', null, $post, $force_delete ); -
apply_filters( 'https_local_ssl_verify', false ); -
apply_filters( 'plugin_locale', $locale, 'chinads' ); -
apply_filters_ref_array( 'posts_pre_query', array( null, &$this ) ); -
do_action_ref_array( 'pre_get_posts', array( &$this ) ); -
apply_filters( 'pre_trash_post', null, $post ); -
do_action( 'product_variation_linked', $variation->save() ); -
apply_filters( 'tbds_get_exchange_rate', round( $rate, $decimals ), $api ); -
apply_filters( 'tbds_image_file_name', basename( $matches[0] ), $post_parent, $post_title ); -
do_action( 'tbds_import_list_product_message', $product ); -
apply_filters( 'tbds_import_product_description', $description, $data ); -
apply_filters( 'tbds_merge_external_options_before_save', $options ); -
do_action( 'tbds_print_scripts' ); -
apply_filters( 'tbds_processed_price', $price, $is_sale_price, $original_price ); -
apply_filters( 'tbds_save_setting_option', [], $slug ); -
apply_filters( 'tbds_search_product_statuses', $post_status ); -
do_action( 'tbds_settings_tab', $slug ); -
apply_filters( 'the_title', $post_title, $post_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_chinads-taobao-dropshipping-for-woocommerce' ); -
do_action( 'woocommerce_auth_page_header' ); -
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( 'wp_insert_post_empty_content', $maybe_empty, $postarr ); -
apply_filters( 'wp_insert_post_parent', $post_parent, $post_id, $new_postarr, $postarr );
Generated from ChinaDS'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: