WordPress filter hook
wxr_importer.pre_process.user
Fired by 24 WordPress plugins, running on 1.3M+ sites between them.
“Pre-process user data.”
How to use wxr_importer.pre_process.user
It's a filter: your callback receives the value and 1 more argument, and must return the (changed) value.
Add this to your theme's functions.php or a small custom plugin:
add_filter( 'wxr_importer.pre_process.user', function( $data, $meta ) {
// Change $data here.
return $data;
}, 10, 2 );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.
24 plugins that fire wxr_importer.pre_process.user
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
Starter Templates: AI-Powered Website Templates for Elementor & Gutenberg1+ million installs
apply_filters( 'wxr_importer.pre_process.user', $data, $meta )inc/lib/starter-templates-importer/importer/wxr-importer.php:1682 -
Kadence Starter Templates200,000+ installs
apply_filters( 'wxr_importer.pre_process.user', $data, $meta )wxr-importer/WXRImporter.php:1542 -
aThemes Starter Sites30,000+ installs
apply_filters( 'wxr_importer.pre_process.user', $data, $meta )import/wp-content-importer-v2/WXRImporter.php:1547 -
Rara One Click Demo Import20,000+ installs
apply_filters( 'wxr_importer.pre_process.user', $data, $meta )includes/extras/class-wxr-importer.php:1463 -
Demo Importer Plus10,000+ installs
apply_filters( 'wxr_importer.pre_process.user', $data, $meta )inc/importers/wxr-importer/class-wxr-importer.php:1763 -
Animation Addons for Elementor10,000+ installs
apply_filters( 'wxr_importer.pre_process.user', $data, $meta )inc/admin/base/AaeaddonWXRImporter.php:1749 -
Responsive Starter Templates10,000+ installs
apply_filters( 'wxr_importer.pre_process.user', $data, $meta )includes/importers/wxr-importer/class-wxr-importer.php:1737 -
TemplateSpare10,000+ installs
apply_filters( 'wxr_importer.pre_process.user', $data, $meta )includes/companion/importer/class-wxr-importer.php:1516 -
AF Companion9,000+ installs
apply_filters( 'wxr_importer.pre_process.user', $data, $meta )inc/importer/class-wxr-importer.php:1465 -
Themebeez Toolkit8,000+ installs
apply_filters( 'wxr_importer.pre_process.user', $data, $meta )includes/demo-importer/importer/class-tt-importer-wxr-importer.php:1685 -
ThemeHunk Customizer6,000+ installs
apply_filters( 'wxr_importer.pre_process.user', $data, $meta )import/core/importer/class-wxr-importer.php:1503 -
Hunk Companion5,000+ installs
apply_filters( 'wxr_importer.pre_process.user', $data, $meta )import/core/importer/class-wxr-importer.php:1503 -
SKT Themes Demo Import4,000+ installs
apply_filters( 'wxr_importer.pre_process.user', $data, $meta )inc/importer/class-wxr-importer.php:1462 -
Ashe Extra2,000+ installs
apply_filters( 'wxr_importer.pre_process.user', $data, $meta )includes/importers/wxr-importer.php:1484 -
Zita Site Library for Elementor1,000+ installs
apply_filters( 'wxr_importer.pre_process.user', $data, $meta )importer/class-wxr-importer.php:1503 -
Vayu Blocks900+ installs
apply_filters( 'wxr_importer.pre_process.user', $data, $meta )inc/vayu-sites/core/importer/class-wxr-importer.php:1565 -
Theme One Click Demo Importer400+ installs
apply_filters( 'wxr_importer.pre_process.user', $data, $meta )inc/core/classes/importer/class-wxr-importer.php:1437 -
Academy Starter Templates300+ installs
apply_filters( 'wxr_importer.pre_process.user', $data, $meta )includes/library/awesomemotive/wxr-importer.php:1565 -
Z Companion200+ installs
apply_filters( 'wxr_importer.pre_process.user', $data, $meta )import/importer/class-wxr-importer.php:1503 -
Perfectwpthemes Toolkit100+ installs
apply_filters( 'wxr_importer.pre_process.user', $data, $meta )includes/demo-importer/importer/class-pwpt-importer-wxr-importer.php:1492 -
Codegear Starter50+ installs
apply_filters( 'wxr_importer.pre_process.user', $data, $meta )import/wp-content-importer-v2/WXRImporter.php:1547 -
LQThemes Companion40+ installs
apply_filters( 'wxr_importer.pre_process.user', $data, $meta )inc/templates-importer/wxr-importer/class-wxr-importer.php:1506 -
Mirrorgrid Demo Importer20+ installs
apply_filters( 'wxr_importer.pre_process.user', $data, $meta )includes/importer/class-mg-importer-wxr-importer.php:1474 -
WPHobby Demo Import10+ installs
apply_filters( 'wxr_importer.pre_process.user', $data, $meta )includes/importers/wxr-importer/class-wxr-importer.php:1503
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.