WordPress filter hook
wxr_importer.pre_process.post_meta
Fired by 27 WordPress plugins, running on 1.5M+ sites between them.
“Pre-process post meta data.”
How to use wxr_importer.pre_process.post_meta
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.post_meta', function( $meta_item, $post_id ) {
// Change $meta_item here.
return $meta_item;
}, 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.
27 plugins that fire wxr_importer.pre_process.post_meta
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.post_meta', $meta_item, $post_id )inc/lib/starter-templates-importer/importer/wxr-importer.php:1318 -
Kadence Starter Templates200,000+ installs
apply_filters( 'wxr_importer.pre_process.post_meta', $meta_item, $post_id )wxr-importer/WXRImporter.php:1196 -
Jupiter X Core70,000+ installs
apply_filters( 'wxr_importer.pre_process.post_meta', $meta_item, $post_id )includes/control-panel-2/includes/class-wxr-importer.php:1110 -
Starter Templates & Sites Pack by ThemeGrill70,000+ installs
apply_filters( 'wxr_importer.pre_process.post_meta', $meta_item, $post_id )src/Importers/WXRImporter/WXRImporter.php:1245 -
aThemes Starter Sites30,000+ installs
apply_filters( 'wxr_importer.pre_process.post_meta', $meta_item, $post_id )import/wp-content-importer-v2/WXRImporter.php:1201 -
Rara One Click Demo Import20,000+ installs
apply_filters( 'wxr_importer.pre_process.post_meta', $meta_item, $post_id )includes/extras/class-wxr-importer.php:1133 -
Demo Importer Plus10,000+ installs
apply_filters( 'wxr_importer.pre_process.post_meta', $meta_item, $post_id )inc/importers/wxr-importer/class-wxr-importer.php:1393 -
Animation Addons for Elementor10,000+ installs
apply_filters( 'wxr_importer.pre_process.post_meta', $meta_item, $post_id )inc/admin/base/AaeaddonWXRImporter.php:1397 -
Responsive Starter Templates10,000+ installs
apply_filters( 'wxr_importer.pre_process.post_meta', $meta_item, $post_id )includes/importers/wxr-importer/class-wxr-importer.php:1378 -
TemplateSpare10,000+ installs
apply_filters( 'wxr_importer.pre_process.post_meta', $meta_item, $post_id )includes/companion/importer/class-wxr-importer.php:1171 -
AF Companion9,000+ installs
apply_filters( 'wxr_importer.pre_process.post_meta', $meta_item, $post_id )inc/importer/class-wxr-importer.php:1135 -
Themebeez Toolkit8,000+ installs
apply_filters( 'wxr_importer.pre_process.post_meta', $meta_item, $post_id )includes/demo-importer/importer/class-tt-importer-wxr-importer.php:1326 -
Masteriyo LMS6,000+ installs
apply_filters( 'wxr_importer.pre_process.post_meta', $meta_item, $post_id )includes/StarterTemplates/Importers/WXRImporter/WXRImporter.php:1033 -
ThemeHunk Customizer6,000+ installs
apply_filters( 'wxr_importer.pre_process.post_meta', $meta_item, $post_id )import/core/importer/class-wxr-importer.php:1159 -
Hunk Companion5,000+ installs
apply_filters( 'wxr_importer.pre_process.post_meta', $meta_item, $post_id )import/core/importer/class-wxr-importer.php:1159 -
SKT Themes Demo Import4,000+ installs
apply_filters( 'wxr_importer.pre_process.post_meta', $meta_item, $post_id )inc/importer/class-wxr-importer.php:1132 -
Ashe Extra2,000+ installs
apply_filters( 'wxr_importer.pre_process.post_meta', $meta_item, $post_id )includes/importers/wxr-importer.php:1146 -
Zita Site Library for Elementor1,000+ installs
apply_filters( 'wxr_importer.pre_process.post_meta', $meta_item, $post_id )importer/class-wxr-importer.php:1159 -
Vayu Blocks900+ installs
apply_filters( 'wxr_importer.pre_process.post_meta', $meta_item, $post_id )inc/vayu-sites/core/importer/class-wxr-importer.php:1221 -
Theme One Click Demo Importer400+ installs
apply_filters( 'wxr_importer.pre_process.post_meta', $meta_item, $post_id )inc/core/classes/importer/class-wxr-importer-v2.php:1129 -
Academy Starter Templates300+ installs
apply_filters( 'wxr_importer.pre_process.post_meta', $meta_item, $post_id )includes/library/awesomemotive/wxr-importer.php:1213 -
Z Companion200+ installs
apply_filters( 'wxr_importer.pre_process.post_meta', $meta_item, $post_id )import/importer/class-wxr-importer.php:1159 -
Perfectwpthemes Toolkit100+ installs
apply_filters( 'wxr_importer.pre_process.post_meta', $meta_item, $post_id )includes/demo-importer/importer/class-pwpt-importer-wxr-importer.php:1159 -
Codegear Starter50+ installs
apply_filters( 'wxr_importer.pre_process.post_meta', $meta_item, $post_id )import/wp-content-importer-v2/WXRImporter.php:1201 -
LQThemes Companion40+ installs
apply_filters( 'wxr_importer.pre_process.post_meta', $meta_item, $post_id )inc/templates-importer/wxr-importer/class-wxr-importer.php:1162 -
Mirrorgrid Demo Importer20+ installs
apply_filters( 'wxr_importer.pre_process.post_meta', $meta_item, $post_id )includes/importer/class-mg-importer-wxr-importer.php:1141 -
WPHobby Demo Import10+ installs
apply_filters( 'wxr_importer.pre_process.post_meta', $meta_item, $post_id )includes/importers/wxr-importer/class-wxr-importer.php:1159
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.