WordPress filter hook

wxr_importer.pre_process.term_meta

Fired by 10 WordPress plugins, running on 1.3M+ sites between them.

“Pre-process term meta data.”

How to use wxr_importer.pre_process.term_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:

functions.php
add_filter( 'wxr_importer.pre_process.term_meta', function( $meta_item, $term_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.

10 plugins that fire wxr_importer.pre_process.term_meta

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.term_meta', $meta_item, $term_id ) inc/lib/starter-templates-importer/importer/wxr-importer.php:2015
  2. Kadence Starter Templates icon Kadence Starter Templates200,000+ installs apply_filters( 'wxr_importer.pre_process.term_meta', $meta_item, $term_id ) wxr-importer/WXRImporter.php:1873
  3. Starter Templates & Sites Pack by ThemeGrill icon Starter Templates & Sites Pack by ThemeGrill70,000+ installs apply_filters( 'wxr_importer.pre_process.term_meta', $meta_item, $term_id ) src/Importers/WXRImporter/WXRImporter.php:1598
  4. aThemes Starter Sites icon aThemes Starter Sites30,000+ installs apply_filters( 'wxr_importer.pre_process.term_meta', $meta_item, $term_id ) import/wp-content-importer-v2/WXRImporter.php:1878
  5. Demo Importer Plus icon Demo Importer Plus10,000+ installs apply_filters( 'wxr_importer.pre_process.term_meta', $meta_item, $term_id ) inc/importers/wxr-importer/class-wxr-importer.php:1339
  6. Animation Addons for Elementor icon Animation Addons for Elementor10,000+ installs apply_filters( 'wxr_importer.pre_process.term_meta', $meta_item, $term_id ) inc/admin/base/AaeaddonWXRImporter.php:2053
  7. Masteriyo LMS icon Masteriyo LMS6,000+ installs apply_filters( 'wxr_importer.pre_process.term_meta', $meta_item, $term_id ) includes/StarterTemplates/Importers/WXRImporter/WXRImporter.php:1423
  8. Theme One Click Demo Importer icon Theme One Click Demo Importer400+ installs apply_filters( 'wxr_importer.pre_process.term_meta', $meta_item, $term_id ) inc/core/classes/importer/class-wxr-importer.php:1706
  9. Academy Starter Templates icon Academy Starter Templates300+ installs apply_filters( 'wxr_importer.pre_process.term_meta', $meta_item, $term_id ) includes/library/awesomemotive/wxr-importer.php:1900
  10. Codegear Starter icon Codegear Starter50+ installs apply_filters( 'wxr_importer.pre_process.term_meta', $meta_item, $term_id ) import/wp-content-importer-v2/WXRImporter.php:1878

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.