Anant Sites 1.1.8 has 12 actions and 21 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 Anant Sites fires an action
add_action( 'import_term_meta', function( $term_id, $key, $value ) {
// Your code runs here.
}, 10, 3 );
// Change a value Anant Sites is about to use
add_filter( 'import_term_meta_key', function( $meta, $term_id, $term ) {
// Change $meta here.
return $meta;
}, 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
-
/** * Fires after term meta is imported. */ do_action( 'import_term_meta', $term_id, $key, $value ); -
/** * Filters the meta key for an imported piece of term meta. */ apply_filters( 'import_term_meta_key', $meta['key'], $term_id, $term ); -
/** * Filter ID of the existing post corresponding to post currently importing. */ apply_filters( 'wp_import_existing_post', $post_exists, $post ); -
/** * Filters the metadata attached to an imported term. */ apply_filters( 'wp_import_term_meta', $term['termmeta'], $term_id, $term ); -
apply_filters( 'import_allow_create_users', true ); -
apply_filters( 'import_allow_fetch_attachments', true ); -
apply_filters( 'import_attachment_size_limit', 0 ); -
do_action( 'import_end' ); -
do_action( 'import_post_meta', $post_id, $key, $value ); -
apply_filters( 'import_post_meta_key', $meta['key'], $post_id, $post ); -
do_action( 'import_start' ); -
do_action( 'wie_after_import' ); -
do_action( 'wie_after_widget_import', $after_widget_import ); -
apply_filters( 'wie_available_widgets', $available_widgets ); -
do_action( 'wie_before_import' ); -
apply_filters( 'wie_import_data', $data ); -
apply_filters( 'wie_import_results', $results ); -
apply_filters( 'wie_widget_settings', $widget ); -
apply_filters( 'wie_widget_settings_array', $widget ); -
apply_filters( 'wp_import_categories', $this->categories ); -
do_action( 'wp_import_insert_comment', $inserted_comments[$key], $comment, $comment_post_ID, $post ); -
do_action( 'wp_import_insert_post', $post_id, $original_post_ID, $postdata, $post ); -
do_action( 'wp_import_insert_term', $t, $term, $post_id, $post ); -
do_action( 'wp_import_insert_term_failed', $t, $term, $post_id, $post ); -
apply_filters( 'wp_import_post_comments', $post['comments'], $post_id, $post ); -
apply_filters( 'wp_import_post_data_processed', $postdata, $post ); -
apply_filters( 'wp_import_post_data_raw', $post ); -
apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ); -
apply_filters( 'wp_import_post_terms', $post['terms'], $post_id, $post ); -
apply_filters( 'wp_import_posts', $this->posts ); -
do_action( 'wp_import_set_post_terms', $tt_ids, $ids, $tax, $post_id, $post ); -
apply_filters( 'wp_import_tags', $this->tags ); -
apply_filters( 'wp_import_terms', $this->terms );
Generated from Anant Sites'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: