Hunk Companion 2.0.8 has 23 actions and 51 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 Hunk Companion fires an action
add_action( 'import_end', function() {
// Your code runs here.
}, 10, 1 );
// Change a value Hunk Companion is about to use
add_filter( 'wxr_importer.pre_process.comment', function( $comment, $post_id ) {
// Change $comment here.
return $comment;
}, 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
-
/** * Complete the import. */ do_action( 'import_end' ); -
/** * Begin the import. */ do_action( 'import_start' ); -
/** * Comment has been imported. */ do_action( 'wp_import_insert_comment', $comment_id, $comment, $post_id, $post ); -
/** * Pre-process comment data */ apply_filters( 'wxr_importer.pre_process.comment', $comment, $post_id ); -
/** * Pre-process post data. */ apply_filters( 'wxr_importer.pre_process.post', $data, $meta, $comments, $terms ); -
/** * Pre-process post meta data. */ apply_filters( 'wxr_importer.pre_process.post_meta', $meta_item, $post_id ); -
/** * Pre-process term data. */ apply_filters( 'wxr_importer.pre_process.term', $data, $meta ); -
/** * Pre-process user data. */ apply_filters( 'wxr_importer.pre_process.user', $data, $meta ); -
wxr_importer.process_already_imported.comment
action Used by 12 plugins → Copy link Customise this hook/** * Comment processing already imported. */ do_action( 'wxr_importer.process_already_imported.comment', $comment ); -
wxr_importer.process_already_imported.post
action Used by 14 plugins → Copy link Customise this hook/** * Post processing already imported. */ do_action( 'wxr_importer.process_already_imported.post', $data ); -
wxr_importer.process_already_imported.term
action Used by 14 plugins → Copy link Customise this hook/** * Term processing already imported. */ do_action( 'wxr_importer.process_already_imported.term', $data ); -
/** * Post processing failed. */ do_action( 'wxr_importer.process_failed.post', $post_id, $data, $meta, $comments, $terms ); -
/** * Term processing failed. */ do_action( 'wxr_importer.process_failed.term', $result, $data, $meta ); -
/** * User processing failed. */ do_action( 'wxr_importer.process_failed.user', $user_id, $userdata ); -
/** * Post processing skipped. */ do_action( 'wxr_importer.process_skipped.post', $data, $meta ); -
/** * Post processing completed. */ do_action( 'wxr_importer.processed.comment', $comment_id, $comment, $meta, $post_id ); -
/** * Post processing completed. */ do_action( 'wxr_importer.processed.post', $post_id, $data, $meta, $comments, $terms ); -
/** * Term processing completed. */ do_action( 'wxr_importer.processed.term', $term_id, $data ); -
/** * User processing completed. */ do_action( 'wxr_importer.processed.user', $user_id, $userdata ); -
apply_filters( 'open_repeater_input_types_filter', 'color', $this->id, 'customizer_repeater_color_control' ); -
apply_filters( 'repeater_input_labels_filter', esc_html__( 'Color', 'hunk-companion' ), $this->id, 'customizer_repeater_color_control' ); -
apply_filters( 'gogo_translate_single_string', $team_item->image_url, 'Team section' ); -
apply_filters( 'open-mart_translate_single_string', $slide_item->image_url, 'Top Slider section' ); -
apply_filters( 'open-shop_translate_single_string', $slide_item->image_url, 'Top Slider section' ); -
apply_filters( 'open_mart_translate_single_string', $slide_item->image_url, 'Top Slider section' ); -
apply_filters( 'top_store_translate_single_string', $slide_item->image_url, 'Top Slider section' ); -
apply_filters( 'almaira_translate_single_string', $slider_item->image_url, 'Slider section' ); -
apply_filters( 'widget_title', $title ); -
apply_filters( 'open_shop_translate_single_string', $ship_item->icon_value, '' ); -
apply_filters( 'woocommerce_loop_add_to_cart_link', sprintf( '<a href="%s" rel="nofollow" data-product_id="%s" data-product_sku="%s" data-quantity="%s" class="elemento-add-to-cart-btn button %s %s">%s %s</a>', esc_url($product->add_to_cart_url()), esc_attr($product->get_id()), esc_attr($product->get_sku()), 1, $product->is_purchasable() && $product->is_in_stock() ? 'add_to_cart_button' : '', $product->is_purchasable() && $product->is_in_stock() ... ); -
apply_filters( 'gogo_testimonials_default_content', json_encode( array( array( 'image_url' =>HUNK_COMPANION_PLUGIN_DIR_URL . '/gogolite/images/testimonial1.png', 'title' => esc_html__( 'Surbhi', 'hunk-companion' ), 'subtitle' => esc_html__( 'Business Owner', 'hunk-companion' ), 'text' => esc_html__( '"Nunc eu elementum libero. Etiam egestas leo eget urna ultrices, in finibus eros gravida. Donec scelerisque pulvinar dapibus. Nam pretium risus sed... ); -
do_action( "activate_{$plugin}" ); -
do_action( 'activate_plugin', $plugin ); -
do_action( 'activated_plugin', $plugin ); -
apply_filters( 'almaira_demo_site', array( array( 'import_file_name' => esc_html__('Almaira Shop Light Scheme','hunk-companion'), 'import_file_url'=> HUNK_COMPANION_PLUGIN_DIR_URL .'almaira-shop/demo/import-file/light/blog.xml', 'import_customizer_file_url'=> HUNK_COMPANION_PLUGIN_DIR_URL .'almaira-shop/demo/import-file/light/customizer.dat', 'import_widget_file_url'=>HUNK_COMPANION_PLUGIN_DIR_URL .'almaira-shop/demo/import-file/... ); -
apply_filters( 'customizer_background_button_labels', $button_labels, $id ); -
apply_filters( 'customizer_background_choices', $background_choices, $id ); -
apply_filters( 'customizer_background_field_labels', $field_labels, $id ); -
apply_filters( 'gogo_features_default_content', json_encode( array( array( 'icon_value' => 'fa-diamond', 'title' => esc_html__( 'Development', 'hunk-companion' ), 'text' => esc_html__( 'Praesent rutrum diam nec arcu fringilla vehicula.', 'hunk-companion' ), 'link' => '#', 'color' => '#ff214f', ), array( 'icon_value' => 'fa-heart', 'title' => esc_html__( 'Design', 'hunk-companion' ), 'text' => esc_html__( 'Praesent rutrum diam nec arcu fringi... ); -
apply_filters( 'gogo_team_default_content', json_encode( array( array( 'title' => esc_html__( 'Gabriel', 'hunk-companion' ), 'subtitle' => esc_html__( 'Developer', 'hunk-companion' ), 'text' => esc_html__( 'Lorem Ipsum is simply dummy text of the printing and typesetting industry.', 'hunk-companion' ), 'image_url' => HUNK_COMPANION_PLUGIN_DIR_URL . 'gogolite/images/team-1.jpg', 'link' => '#', 'social_repeater' => json_encode( array( arra... ); -
apply_filters( 'hunk_companion_xml_import_options', array( 'fetch_attachments' => true, 'default_author' => get_current_user_id(), ) ); -
apply_filters( 'import_attachment_size_limit', 0 ); -
do_action( 'import_post_meta', $post_id, $key, $value ); -
apply_filters( 'import_post_meta_key', $meta_item['key'], $post_id, $post ); -
apply_filters( 'open_mart_brand_default_content', json_encode( array( array( 'image_url' => '', 'link' => '#', ), array( 'image_url' => '', 'link' => '#', ), array( 'image_url' => '', 'link' => '#', ), array( 'image_url' => '', 'link' => '#', ), array( 'image_url' => '', 'link' => '#', ), array( 'image_url' => '', 'link' => '#', ), ) ) ); -
apply_filters( 'open_mart_counter_default_content', json_encode( array( array( 'title' => 'Tea Consumed', 'number' => esc_html__( '1008', 'hunk-companion' ), ), array( 'title' => 'Projects Completed', 'number' => esc_html__( '1008', 'hunk-companion' ), ), array( 'title' => 'Hours Spent', 'number' => esc_html__( '1008', 'hunk-companion' ), ), array( 'title' => 'Awards Recieved', 'number' => esc_html__( '1008', 'hunk-companion' ), ), ) ) ); -
apply_filters( 'open_mart_demo_site', array( array( 'import_file_name' => esc_html__('Open Mart Default','hunk-companion'), 'import_file_url'=> esc_url('https://themehunk.com/wp-content/uploads/sites-demo/openmart-lite/default/blogs.xml'), 'import_customizer_file_url'=> esc_url('https://themehunk.com/wp-content/uploads/sites-demo/openmart-lite/default/customizer.dat'), 'import_widget_file_url'=> esc_url('https://themehunk.com/wp-co... ); -
apply_filters( 'open_mart_highlight_default_content', json_encode( array( array( 'icon_value' => 'fa-cog', 'title' => esc_html__( 'Best Offers', 'hunk-companion' ), 'subtitle' => esc_html__( 'On all order over ', 'hunk-companion' ), ), array( 'icon_value' => 'fa-cog', 'title' => esc_html__( 'Risk Free', 'hunk-companion' ), 'subtitle' => esc_html__( 'On all order over ', 'hunk-companion' ), ), array( 'icon_value' => 'fa-cog', 'title' => esc_html__(... ); -
apply_filters( 'open_mart_service_default_content', json_encode( array( array( 'icon_value' => 'fa-diamond', 'title' => esc_html__( 'Development', 'hunk-companion' ), 'text' => esc_html__( 'Nam varius mauris eget sodales tempus. Quisque sollicitudin consectetur accumsan. Ut imperdiet mi velit, ut congue justo sagittis eget', 'hunk-companion' ), 'link' => '#', 'color' => '#ff214f', ), array( 'icon_value' => 'fa-heart', 'title' => esc_html__( 'Des... ); -
apply_filters( 'open_mart_testimonials_default_content', json_encode( array( array( 'image_url' => '', 'subtitle' => esc_html__( 'Business Owner', 'hunk-companion' ), 'text' => esc_html__( '"Nunc eu elementum libero. Etiam egestas leo eget urna ultrices, in finibus eros gravida. Donec scelerisque pulvinar dapibus. Nam pretium risus sed metus ultrices blandit. Pellentesque rhoncus est non nunc ultricies accumsan. Nullam gravida turpis et lacinia cursu... ); -
apply_filters( 'open_shop_demo_site', array( array( 'import_file_name' => esc_html__('Open Shop Default','hunk-companion'), 'import_file_url'=> esc_url('https://themehunk.com/wp-content/uploads/sites-demo/open-shop/default/blogs.xml'), 'import_customizer_file_url'=> esc_url('https://themehunk.com/wp-content/uploads/sites-demo/open-shop/default/customizer.dat'), 'import_widget_file_url'=> esc_url('https://themehunk.com/wp-content/up... ); -
apply_filters( 'open_shop_highlight_default_content', json_encode( array( array( 'icon_value' => 'fa-cog', 'title' => esc_html__( 'Free Shiping', 'hunk-companion' ), 'subtitle' => esc_html__( 'On all order over ', 'hunk-companion' ), ), array( 'icon_value' => 'fa-cog', 'title' => esc_html__( 'Free Shiping', 'hunk-companion' ), 'subtitle' => esc_html__( 'On all order over ', 'hunk-companion' ), ), array( 'icon_value' => 'fa-cog', 'title' => esc_htm... ); -
apply_filters( 'open_shop_top_slider_default_content', json_encode( array( array( ), array( ), ) ) ); -
apply_filters( 'openmart_faq_default_content', json_encode( array( array( 'title' => esc_html__( 'What do you want to know', 'hunk-companion' ), 'text' => esc_html__( 'Nulla et sodales nisl. Nam auctor quis odio eu congue. Lorem ipsum dolor sit amet, consectetur adipiscing elit.', 'hunk-companion' ), ), array( 'title' => esc_html__( 'What do you want to know', 'hunk-companion' ), 'text' => esc_html__( 'Nulla et sodales nisl. Nam auctor quis... ); -
apply_filters( 'portfoliolite_demo_site', array( array( 'import_file_name' => esc_html__('Portfoliolite Default','portfoliolite'), 'import_file_url'=> esc_url('https://themehunk.com/wp-content/uploads/sites-demo/portfoliolite/blogs.xml'), 'import_customizer_file_url'=> esc_url('https://themehunk.com/wp-content/uploads/sites-demo/portfoliolite/customizer.dat'), 'import_widget_file_url'=> esc_url('https://themehunk.com/wp-content/uploads... ); -
apply_filters( 'registered_widgets', $available_widgets ); -
apply_filters( 'th_shop_mania_demo_site', array( array( 'import_file_name' => esc_html__('Fashion Store','th-shop-mania'), 'import_file_url'=> esc_url($file_url.'fashion-store/blog.xml'), 'import_customizer_file_url'=> esc_url($file_url.'fashion-store/customizer.dat'), 'import_widget_file_url'=> '', 'import_preview_image_url'=> esc_url($file_url.'fashion-store/thumb.png'), 'preview_url'=> esc_url('https://wpthemes.themehunk.com/fashion... ); -
apply_filters( 'themehunk_sites_api_params', array( 'site_key' => '', 'site_url' => '', ) ); -
apply_filters( 'themhunk_sites_api_args', array( 'timeout' => 15, ) ); -
apply_filters( 'top_store_brand_default_content', json_encode( array( array( 'image_url' => '', 'link' => '#', ), array( 'image_url' => '', 'link' => '#', ), array( 'image_url' => '', 'link' => '#', ), array( 'image_url' => '', 'link' => '#', ), array( 'image_url' => '', 'link' => '#', ) ) ) ); -
apply_filters( 'top_store_demo_site', array( array( 'import_file_name' => esc_html__('Top Store Default','top-store'), 'import_file_url'=> esc_url('https://themehunk.com/wp-content/uploads/sites-demo/top-store/default/blogs.xml'), 'import_customizer_file_url'=> esc_url('https://themehunk.com/wp-content/uploads/sites-demo/top-store/default/customizer.dat'), 'import_widget_file_url'=> esc_url('https://themehunk.com/wp-content/uploads... ); -
apply_filters( 'top_store_highlight_default_content', json_encode( array( array( 'icon_value' => 'fa-cog', 'title' => esc_html__( 'Free Shiping', 'top-store' ), 'subtitle' => esc_html__( 'On all order over ', 'top-store' ), ), array( 'icon_value' => 'fa-cog', 'title' => esc_html__( 'Free Shiping', 'top-store' ), 'subtitle' => esc_html__( 'On all order over ', 'top-store' ), ), array( 'icon_value' => 'fa-cog', 'title' => esc_html__( 'Free Shiping',... ); -
apply_filters( 'top_store_top_slider_default_content', json_encode( array( array( ), array( ), ) ) ); -
do_action( 'wie_after_widget_import', $after_widget_import ); -
apply_filters( 'wie_import_data', $data ); -
apply_filters( 'wie_widget_settings', $widget ); -
apply_filters( 'wie_widget_settings_array', $widget ); -
do_action( 'wp_import_insert_post', $post_id, $original_id, $postdata, $data ); -
do_action( 'wp_import_insert_term', $term_id, $data ); -
do_action( 'wp_import_insert_term_failed', $result, $data ); -
apply_filters( 'wp_import_post_comments', $comments, $post_id, $post ); -
apply_filters( 'wp_import_post_data_processed', $postdata, $data ); -
apply_filters( 'wp_import_post_terms', $terms, $post_id, $data ); -
do_action( 'wp_import_set_post_terms', $tt_ids, $ids, $tax, $post_id, $data );
Generated from Hunk Companion'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: