WordPress filter hook

wxr_importer.pre_process.post

Fired by 27 WordPress plugins, running on 1.5M+ sites between them.

“Pre-process post data.”

How to use wxr_importer.pre_process.post

It's a filter: your callback receives the value and 3 more arguments, and must return the (changed) value. Add this to your theme's functions.php or a small custom plugin:

functions.php
add_filter( 'wxr_importer.pre_process.post', function( $data, $meta, $comments, $terms ) {
	// Change $data here.
	return $data;
}, 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.

27 plugins that fire wxr_importer.pre_process.post

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 apply_filters( 'wxr_importer.pre_process.post', $data, $meta, $comments, $terms ) inc/lib/starter-templates-importer/importer/wxr-importer.php:860
  2. Kadence Starter Templates icon Kadence Starter Templates200,000+ installs apply_filters( 'wxr_importer.pre_process.post', $data, $meta, $comments, $terms ) wxr-importer/WXRImporter.php:759
  3. Jupiter X Core icon Jupiter X Core70,000+ installs apply_filters( 'wxr_importer.pre_process.post', $data, $meta, $comments, $terms ) includes/control-panel-2/includes/class-wxr-importer.php:708
  4. Starter Templates & Sites Pack by ThemeGrill icon Starter Templates & Sites Pack by ThemeGrill70,000+ installs apply_filters( 'wxr_importer.pre_process.post', $data, $meta, $comments, $terms ) src/Importers/WXRImporter/WXRImporter.php:597
  5. aThemes Starter Sites icon aThemes Starter Sites30,000+ installs apply_filters( 'wxr_importer.pre_process.post', $data, $meta, $comments, $terms ) import/wp-content-importer-v2/WXRImporter.php:763
  6. Rara One Click Demo Import icon Rara One Click Demo Import20,000+ installs apply_filters( 'wxr_importer.pre_process.post', $data, $meta, $comments, $terms ) includes/extras/class-wxr-importer.php:735
  7. Demo Importer Plus icon Demo Importer Plus10,000+ installs apply_filters( 'wxr_importer.pre_process.post', $data, $meta, $comments, $terms ) inc/importers/wxr-importer/class-wxr-importer.php:866
  8. Animation Addons for Elementor icon Animation Addons for Elementor10,000+ installs apply_filters( 'wxr_importer.pre_process.post', $data, $meta, $comments, $terms ) inc/admin/base/AaeaddonWXRImporter.php:995
  9. TemplateSpare icon TemplateSpare10,000+ installs apply_filters( 'wxr_importer.pre_process.post', $data, $meta, $comments, $terms ) includes/companion/importer/class-wxr-importer.php:769
  10. Responsive Starter Templates icon Responsive Starter Templates10,000+ installs apply_filters( 'wxr_importer.pre_process.post', $data, $meta, $comments, $terms ) includes/importers/wxr-importer/class-wxr-importer.php:857
  11. AF Companion icon AF Companion9,000+ installs apply_filters( 'wxr_importer.pre_process.post', $data, $meta, $comments, $terms ) inc/importer/class-wxr-importer.php:737
  12. Themebeez Toolkit icon Themebeez Toolkit8,000+ installs apply_filters( 'wxr_importer.pre_process.post', $data, $meta, $comments, $terms ) includes/demo-importer/importer/class-tt-importer-wxr-importer.php:876
  13. Masteriyo LMS icon Masteriyo LMS6,000+ installs apply_filters( 'wxr_importer.pre_process.post', $data, $meta, $comments, $terms ) includes/StarterTemplates/Importers/WXRImporter/WXRImporter.php:551
  14. ThemeHunk Customizer icon ThemeHunk Customizer6,000+ installs apply_filters( 'wxr_importer.pre_process.post', $data, $meta, $comments, $terms ) import/core/importer/class-wxr-importer.php:734
  15. Hunk Companion icon Hunk Companion5,000+ installs apply_filters( 'wxr_importer.pre_process.post', $data, $meta, $comments, $terms ) import/core/importer/class-wxr-importer.php:734
  16. SKT Themes Demo Import icon SKT Themes Demo Import4,000+ installs apply_filters( 'wxr_importer.pre_process.post', $data, $meta, $comments, $terms ) inc/importer/class-wxr-importer.php:734
  17. Ashe Extra icon Ashe Extra2,000+ installs apply_filters( 'wxr_importer.pre_process.post', $data, $meta, $comments, $terms ) includes/importers/wxr-importer.php:734
  18. Zita Site Library for Elementor icon Zita Site Library for Elementor1,000+ installs apply_filters( 'wxr_importer.pre_process.post', $data, $meta, $comments, $terms ) importer/class-wxr-importer.php:734
  19. Vayu Blocks icon Vayu Blocks900+ installs apply_filters( 'wxr_importer.pre_process.post', $data, $meta, $comments, $terms ) inc/vayu-sites/core/importer/class-wxr-importer.php:731
  20. Theme One Click Demo Importer icon Theme One Click Demo Importer400+ installs apply_filters( 'wxr_importer.pre_process.post', $data, $meta, $comments, $terms ) inc/core/classes/importer/class-wxr-importer.php:723
  21. Academy Starter Templates icon Academy Starter Templates300+ installs apply_filters( 'wxr_importer.pre_process.post', $data, $meta, $comments, $terms ) includes/library/awesomemotive/wxr-importer.php:763
  22. Z Companion icon Z Companion200+ installs apply_filters( 'wxr_importer.pre_process.post', $data, $meta, $comments, $terms ) import/importer/class-wxr-importer.php:734
  23. Perfectwpthemes Toolkit icon Perfectwpthemes Toolkit100+ installs apply_filters( 'wxr_importer.pre_process.post', $data, $meta, $comments, $terms ) includes/demo-importer/importer/class-pwpt-importer-wxr-importer.php:752
  24. Codegear Starter icon Codegear Starter50+ installs apply_filters( 'wxr_importer.pre_process.post', $data, $meta, $comments, $terms ) import/wp-content-importer-v2/WXRImporter.php:763
  25. LQThemes Companion icon LQThemes Companion40+ installs apply_filters( 'wxr_importer.pre_process.post', $data, $meta, $comments, $terms ) inc/templates-importer/wxr-importer/class-wxr-importer.php:733
  26. Mirrorgrid Demo Importer icon Mirrorgrid Demo Importer20+ installs apply_filters( 'wxr_importer.pre_process.post', $data, $meta, $comments, $terms ) includes/importer/class-mg-importer-wxr-importer.php:737
  27. WPHobby Demo Import icon WPHobby Demo Import10+ installs apply_filters( 'wxr_importer.pre_process.post', $data, $meta, $comments, $terms ) includes/importers/wxr-importer/class-wxr-importer.php:734

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.