WordPress filter hook

wp_import_post_meta

Fired by 75 WordPress plugins, running on 15.1M+ sites between them.

How to use wp_import_post_meta

It's a filter: your callback receives the value and 2 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( 'wp_import_post_meta', function( $post, $post_id, $post2 ) {
	// Change $post here.
	return $post;
}, 10, 3 );

Argument names come from Elementor Agent Ready Website Builder's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

75 plugins that fire wp_import_post_meta

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

  1. Elementor Agent Ready Website Builder icon Elementor Agent Ready Website Builder10+ million installs apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ) core/utils/import-export/wp-import.php:827
  2. WordPress Importer icon WordPress Importer2+ million installs apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ) class-wp-import.php:827
  3. WPvivid icon WPvivid900,000+ installs apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ) includes/class-wpvivid-importer.php:1269
  4. Royal Addons for Elementor icon Royal Addons for Elementor600,000+ installs apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ) admin/import/class-wordpress-importer.php:877
  5. Ocean Extra icon Ocean Extra400,000+ installs apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ) includes/onboarding/class/importer/wp-importer.php:899
  6. Blocksy Companion icon Blocksy Companion300,000+ installs apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ) framework/features/demo-install/wp-importer.php:1120
  7. Templately icon Templately300,000+ installs apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ) modules/full-site-import/WPImport.php:994
  8. Popup Builder icon Popup Builder200,000+ installs apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ) com/libs/SGPBImporter.php:876
  9. Starter Sites & Templates by Neve icon Starter Sites & Templates by Neve100,000+ installs apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ) includes/Importers/WP/WP_Import.php:571
  10. Brizy icon Brizy60,000+ installs apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ) import/importer.php:535
  11. BetterDocs icon BetterDocs30,000+ installs apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ) includes/Admin/Importer/WPImport.php:1401
  12. Timetable and Event Schedule by MotoPress icon Timetable and Event Schedule by MotoPress30,000+ installs apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ) classes/models/class-import.php:873
  13. Apollo13 Framework Extensions icon Apollo13 Framework Extensions20,000+ installs apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ) design_importer/a13-wordpress-importer/class-apollo13-framework-import.php:548
  14. Envo Extra icon Envo Extra20,000+ installs apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ) lib/envothemes-demo-import/includes/panel/classes/importers/class-wordpress-importer.php:656
  15. Futurio Extra icon Futurio Extra10,000+ installs apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ) inc/demo/classes/importers/class-wp-import.php:872
  16. Ansar Import icon Ansar Import10,000+ installs apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ) includes/class-wp-import.php:768
  17. Nexter Extension icon Nexter Extension10,000+ installs apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ) include/nexter-template/importer/class.wordpress-importer.php:901
  18. Qode Essential Addons icon Qode Essential Addons10,000+ installs apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ) inc/admin/inc/admin-pages/sub-pages/import/importer/wordpress-importer.php:961
  19. Solace Extra icon Solace Extra10,000+ installs apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ) admin/export-import/class-wp-import.php:940
  20. Hester Core icon Hester Core10,000+ installs apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ) core/admin/demo-library/importers/class-wordpress-importer.php:1003
  21. Sinatra Core icon Sinatra Core8,000+ installs apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ) includes/admin/demo-library/importers/class-wordpress-importer.php:811
  22. Blaze Demo Importer icon Blaze Demo Importer7,000+ installs apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ) wordpress-importer/class-wp-import.php:868
  23. Mystery Themes Demo Importer icon Mystery Themes Demo Importer6,000+ installs apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ) includes/wp-importers/class-mtdi-importer.php:922
  24. Popularis Extra icon Popularis Extra6,000+ installs apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ) includes/panel/classes/importers/class-wordpress-importer.php:810
  25. Sparkle Demo Importer icon Sparkle Demo Importer5,000+ installs apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ) wordpress-importer/class-wp-import.php:814
  26. HashThemes Demo Importer icon HashThemes Demo Importer5,000+ installs apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ) wordpress-importer/class-wp-import.php:874
  27. Kits, Templates and Patterns icon Kits, Templates and Patterns4,000+ installs apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ) includes/importers/wordpress-importer/class-wxr-importer.php:895
  28. News Kit Addons For Elementor icon News Kit Addons For Elementor3,000+ installs apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ) admin/importer/class-wordpress-importer.php:876
  29. CubeWP Framework icon CubeWP Framework3,000+ installs apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ) cube/importer/wordpress-importer.php:862
  30. WP Travel icon WP Travel3,000+ installs apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ) inc/admin/importer/class-wp-import.php:853
  31. WP Layouts icon WP Layouts3,000+ installs apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ) includes/site-import/wordpress-importer.php:777
  32. Easy Demo Importer icon Easy Demo Importer2,000+ installs apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ) lib/wordpress-importer/class-wp-import.php:1032
  33. EnvoThemes Demo Import icon EnvoThemes Demo Import2,000+ installs apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ) includes/panel/classes/importers/class-wordpress-importer.php:860
  34. aThemeArt Theme Helper icon aThemeArt Theme Helper2,000+ installs apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ) includes/panel/classes/importers/class-wordpress-importer.php:860
  35. Restaurant Menu and Food Ordering icon Restaurant Menu and Food Ordering2,000+ installs apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ) classes/models/class-import.php:549
  36. Kenta Companion icon Kenta Companion2,000+ installs apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ) src/DemoImporter/ContentImporter/WXRImporter.php:883
  37. MantraBrain Starter Sites icon MantraBrain Starter Sites1,000+ installs apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ) includes/importers/wordpress-importer/class-mantrabrain-wxr-importer.php:815
  38. Attesa Extra icon Attesa Extra1,000+ installs apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ) panel/classes/importers/class-wordpress-importer.php:859
  39. CWW Companion icon CWW Companion1,000+ installs apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ) inc/importer/demo-importer/classes/importers/class-wordpress-importer.php:836
  40. Anant Sites icon Anant Sites1,000+ installs apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ) includes/class-wp-import.php:739
  41. Di Themes Demo Site Importer icon Di Themes Demo Site Importer1,000+ installs apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ) inc/di-multipurpose/importers/class-wordpress-importer.php:857
  42. Operation Demo Importer icon Operation Demo Importer800+ installs apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ) classes/importers/class-wordpress-importer.php:836
  43. Omnipress icon Omnipress700+ installs apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ) includes/Libraries/importer/class-wp-import.php:888
  44. Century ToolKit icon Century ToolKit700+ installs apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ) includes/panel/classes/importers/class-wordpress-importer.php:807
  45. Bard Extra icon Bard Extra600+ installs apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ) includes/importers/class-wordpress-importer.php:837
  46. RealPress icon RealPress400+ installs apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ) import/wordpress-importer/class-wp-import.php:931
  47. CV Demo Importer icon CV Demo Importer300+ installs apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ) includes/wp-importers/class-cvdi-importer.php:910
  48. IT Listings icon IT Listings200+ installs apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ) inc/importers/wordpress-importer/class-wxr-importer.php:840
  49. Wishful Companion icon Wishful Companion200+ installs apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ) includes/panel/classes/importers/class-wordpress-importer.php:810
  50. Vertex Addons for Elementor icon Vertex Addons for Elementor200+ installs apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ) app/Modules/WPImport/WPImport.php:760
  51. Realtyna Provisioning icon Realtyna Provisioning200+ installs apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ) app/includes/importer/wordpress-importer.php:827
  52. Tally Theme Setup icon Tally Theme Setup100+ installs apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ) inc/import-xml-old.php:709
  53. Templazee icon Templazee100+ installs apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ) inc/importer/class-wp-import.php:867
  54. Novex Demo Importer icon Novex Demo Importer70+ installs apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ) lib/wordpress-importer/class-wp-import.php:854
  55. Quick Demo Import icon Quick Demo Import50+ installs apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ) includes/importers/WXRImporter.php:733
  56. Simple Theme Demo Importer Plugin icon Simple Theme Demo Importer Plugin50+ installs apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ) wordpress-importer.php:799
  57. LQThemes Companion icon LQThemes Companion40+ installs apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ) inc/templates-importer/wordpress-importer.php:808
  58. Admire Extra icon Admire Extra20+ installs apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ) lib/demo/classes/importers/class-wordpress-importer.php:810
  59. EmBe Core icon EmBe Core20+ installs apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ) inc/redux/inc/extensions/wbc_importer/inc/importer/wordpress-importer.php:721
  60. Long Toolkit icon Long Toolkit20+ installs apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ) addons/importer/wordpress-importer/wordpress-importer.php:880
  61. PASS Addons icon PASS Addons20+ installs apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ) admin/common/import/class-wp-import.php:610
  62. Elite Elementor Addons and Widgets icon Elite Elementor Addons and Widgets20+ installs apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ) admin/import/class-wordpress-importer.php:876
  63. TallyKit icon TallyKit10+ installs apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ) components/importer/inc/wordpress-importer.php:722
  64. Import Kyero Feed icon Import Kyero Feed10+ installs apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ) class-kyero-import.php:960
  65. Reactive LITE icon Reactive LITE10+ installs apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ) reactive-importer.php:819
  66. cm4all-wp-impex icon cm4all-wp-impex10+ installs apply_filters( 'wp_import_post_meta', $post['postmeta'] ?? [], $post_id, $post ) inc/impex-import-extension-content.php:371
  67. Scintilla Demo Importer icon Scintilla Demo Importer10+ installs apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ) lib/wordpress-importer/class-wp-import.php:850
  68. Realty Pack Core icon Realty Pack Core10+ installs apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ) app/importer/wordpress-importer.php:827
  69. Brand Demo Import icon Brand Demo Import10+ installs apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ) inc/wordpress-importer.php:807
  70. Azeen Core icon Azeen CoreFewer than 10 installs apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ) inc/demo/classes/importers/class-wordpress-importer.php:807
  71. Codeless Cloud Starter Sites icon Codeless Cloud Starter SitesFewer than 10 installs apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ) includes/Importers/WP/WP_Import.php:497
  72. Qube Tools icon Qube ToolsFewer than 10 installs apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ) includes/modules/demo/importers/wpimporter.php:810
  73. SaykoAI Companion icon SaykoAI CompanionFewer than 10 installs apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ) includes/admin/starter-sites/import/class-wp-importer.php:1116
  74. Hawk Core icon Hawk CoreFewer than 10 installs apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ) includes/admin/demo-library/importers/class-wordpress-importer.php:811
  75. Wyvern Toolkit icon Wyvern ToolkitFewer than 10 installs apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ) modules/import-export/inc/importers/content-importer/class-wp-import.php:814

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.