WordPress action hook

wxr_importer.processed.comment

Fired by 25 WordPress plugins, running on 1.4M+ sites between them.

“Post processing completed.”

How to use wxr_importer.processed.comment

It's an action: your callback runs at that point and receives 4 arguments. Nothing needs to be returned. Add this to your theme's functions.php or a small custom plugin:

functions.php
add_action( 'wxr_importer.processed.comment', function( $comment_id, $comment, $meta, $post_id ) {
	// Your code runs here.
}, 10, 4 );

Argument names come from Starter Templates: AI-Powered Website Templates for Elementor & Gutenberg's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

25 plugins that fire wxr_importer.processed.comment

Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.

  1. Starter Templates: AI-Powered Website Templates for Elementor & Gutenberg icon Starter Templates: AI-Powered Website Templates for Elementor & Gutenberg1+ million installs do_action( 'wxr_importer.processed.comment', $comment_id, $comment, $meta, $post_id ) inc/lib/starter-templates-importer/importer/wxr-importer.php:1562
  2. Kadence Starter Templates icon Kadence Starter Templates200,000+ installs do_action( 'wxr_importer.processed.comment', $comment_id, $comment, $meta, $post_id ) wxr-importer/WXRImporter.php:1427
  3. Jupiter X Core icon Jupiter X Core70,000+ installs do_action( 'wxr_importer.processed.comment', $comment_id, $comment, $meta, $post_id ) includes/control-panel-2/includes/class-wxr-importer.php:1351
  4. aThemes Starter Sites icon aThemes Starter Sites30,000+ installs do_action( 'wxr_importer.processed.comment', $comment_id, $comment, $meta, $post_id ) import/wp-content-importer-v2/WXRImporter.php:1432
  5. Rara One Click Demo Import icon Rara One Click Demo Import20,000+ installs do_action( 'wxr_importer.processed.comment', $comment_id, $comment, $meta, $post_id ) includes/extras/class-wxr-importer.php:1362
  6. Demo Importer Plus icon Demo Importer Plus10,000+ installs do_action( 'wxr_importer.processed.comment', $comment_id, $comment, $meta, $post_id ) inc/importers/wxr-importer/class-wxr-importer.php:1639
  7. Animation Addons for Elementor icon Animation Addons for Elementor10,000+ installs do_action( 'wxr_importer.processed.comment', $comment_id, $comment, $meta, $post_id ) inc/admin/base/AaeaddonWXRImporter.php:1630
  8. Responsive Starter Templates icon Responsive Starter Templates10,000+ installs do_action( 'wxr_importer.processed.comment', $comment_id, $comment, $meta, $post_id ) includes/importers/wxr-importer/class-wxr-importer.php:1620
  9. TemplateSpare icon TemplateSpare10,000+ installs do_action( 'wxr_importer.processed.comment', $comment_id, $comment, $meta, $post_id ) includes/companion/importer/class-wxr-importer.php:1411
  10. AF Companion icon AF Companion9,000+ installs do_action( 'wxr_importer.processed.comment', $comment_id, $comment, $meta, $post_id ) inc/importer/class-wxr-importer.php:1364
  11. Themebeez Toolkit icon Themebeez Toolkit8,000+ installs do_action( 'wxr_importer.processed.comment', $comment_id, $comment, $meta, $post_id ) includes/demo-importer/importer/class-tt-importer-wxr-importer.php:1566
  12. ThemeHunk Customizer icon ThemeHunk Customizer6,000+ installs do_action( 'wxr_importer.processed.comment', $comment_id, $comment, $meta, $post_id ) import/core/importer/class-wxr-importer.php:1402
  13. Hunk Companion icon Hunk Companion5,000+ installs do_action( 'wxr_importer.processed.comment', $comment_id, $comment, $meta, $post_id ) import/core/importer/class-wxr-importer.php:1402
  14. SKT Themes Demo Import icon SKT Themes Demo Import4,000+ installs do_action( 'wxr_importer.processed.comment', $comment_id, $comment, $meta, $post_id ) inc/importer/class-wxr-importer.php:1361
  15. Ashe Extra icon Ashe Extra2,000+ installs do_action( 'wxr_importer.processed.comment', $comment_id, $comment, $meta, $post_id ) includes/importers/wxr-importer.php:1383
  16. Zita Site Library for Elementor icon Zita Site Library for Elementor1,000+ installs do_action( 'wxr_importer.processed.comment', $comment_id, $comment, $meta, $post_id ) importer/class-wxr-importer.php:1402
  17. Vayu Blocks icon Vayu Blocks900+ installs do_action( 'wxr_importer.processed.comment', $comment_id, $comment, $meta, $post_id ) inc/vayu-sites/core/importer/class-wxr-importer.php:1464
  18. Theme One Click Demo Importer icon Theme One Click Demo Importer400+ installs do_action( 'wxr_importer.processed.comment', $comment_id, $comment, $meta, $post_id ) inc/core/classes/importer/class-wxr-importer.php:1332
  19. Academy Starter Templates icon Academy Starter Templates300+ installs do_action( 'wxr_importer.processed.comment', $comment_id, $comment, $meta, $post_id ) includes/library/awesomemotive/wxr-importer.php:1450
  20. Z Companion icon Z Companion200+ installs do_action( 'wxr_importer.processed.comment', $comment_id, $comment, $meta, $post_id ) import/importer/class-wxr-importer.php:1402
  21. Perfectwpthemes Toolkit icon Perfectwpthemes Toolkit100+ installs do_action( 'wxr_importer.processed.comment', $comment_id, $comment, $meta, $post_id ) includes/demo-importer/importer/class-pwpt-importer-wxr-importer.php:1390
  22. Codegear Starter icon Codegear Starter50+ installs do_action( 'wxr_importer.processed.comment', $comment_id, $comment, $meta, $post_id ) import/wp-content-importer-v2/WXRImporter.php:1432
  23. LQThemes Companion icon LQThemes Companion40+ installs do_action( 'wxr_importer.processed.comment', $comment_id, $comment, $meta, $post_id ) inc/templates-importer/wxr-importer/class-wxr-importer.php:1405
  24. Mirrorgrid Demo Importer icon Mirrorgrid Demo Importer20+ installs do_action( 'wxr_importer.processed.comment', $comment_id, $comment, $meta, $post_id ) includes/importer/class-mg-importer-wxr-importer.php:1372
  25. WPHobby Demo Import icon WPHobby Demo Import10+ installs do_action( 'wxr_importer.processed.comment', $comment_id, $comment, $meta, $post_id ) includes/importers/wxr-importer/class-wxr-importer.php:1402

Need a customisation built on this hook?

Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.