WordPress action hook

import_post_meta

Fired by 111 WordPress plugins, running on 19.7M+ sites between them.

How to use import_post_meta

It's an action: your callback runs at that point and receives 3 arguments. Nothing needs to be returned. Add this to your theme's functions.php or a small custom plugin:

functions.php
add_action( 'import_post_meta', function( $post_id, $key, $value ) {
	// Your code runs here.
}, 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.

111 plugins that fire 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 do_action( 'import_post_meta', $post_id, $key, $value ) core/utils/import-export/wp-import.php:851
  2. Jetpack icon Jetpack3+ million installs do_action( 'import_post_meta', $post_id, $meta_key, $meta_value ) jetpack_vendor/automattic/jetpack-import/src/endpoints/class-post.php:178
  3. WordPress Importer icon WordPress Importer2+ million installs do_action( 'import_post_meta', $post_id, $key, $value ) class-wp-import.php:1037
  4. Starter Templates: AI-Powered Website Templates for Elementor & Gutenberg icon Starter Templates: AI-Powered Website Templates for Elementor & Gutenberg1+ million installs do_action( 'import_post_meta', $post_id, $key, $value ) inc/lib/starter-templates-importer/importer/wxr-importer.php:1343
  5. WPvivid icon WPvivid900,000+ installs do_action( 'import_post_meta', $post_id, $key, $value ) includes/class-wpvivid-importer.php:1078
  6. Royal Addons for Elementor icon Royal Addons for Elementor600,000+ installs do_action( 'import_post_meta', $post_id, $key, $value ) admin/import/class-wordpress-importer.php:901
  7. Ocean Extra icon Ocean Extra400,000+ installs do_action( 'import_post_meta', $post_id, $key, $value ) includes/onboarding/class/importer/wp-importer.php:927
  8. Blocksy Companion icon Blocksy Companion300,000+ installs do_action( 'import_post_meta', $post_id, $key, $value ) framework/features/demo-install/wp-importer.php:1145
  9. Templately icon Templately300,000+ installs do_action( 'import_post_meta', $post_id, $key, $value ) modules/full-site-import/WPImport.php:1018
  10. Popup Builder icon Popup Builder200,000+ installs do_action( 'import_post_meta', $post_id, $key, $value ) com/libs/SGPBImporter.php:897
  11. Kadence Starter Templates icon Kadence Starter Templates200,000+ installs do_action( 'import_post_meta', $post_id, $key, $value ) wxr-importer/WXRImporter.php:1221
  12. Starter Sites & Templates by Neve icon Starter Sites & Templates by Neve100,000+ installs do_action( 'import_post_meta', $post_id, $key, $value ) includes/Importers/WP/WP_Import.php:611
  13. User Menus icon User Menus80,000+ installs do_action( 'import_post_meta', $post_id, $key, $value ) includes/classes/importer/menu.php:277
  14. Jupiter X Core icon Jupiter X Core70,000+ installs do_action( 'import_post_meta', $post_id, $key, $value ) includes/control-panel-2/includes/class-wxr-importer.php:1139
  15. Starter Templates & Sites Pack by ThemeGrill icon Starter Templates & Sites Pack by ThemeGrill70,000+ installs do_action( 'import_post_meta', $post_id, $key, $value ) src/Importers/WXRImporter/WXRImporter.php:1281
  16. Nav Menu Roles icon Nav Menu Roles70,000+ installs do_action( 'import_post_meta', $post_id, $key, $value ) inc/class-nav-menu-roles-import.php:231
  17. Brizy icon Brizy60,000+ installs do_action( 'import_post_meta', $post_id, $key, $value ) import/importer.php:558
  18. aThemes Starter Sites icon aThemes Starter Sites30,000+ installs do_action( 'import_post_meta', $post_id, $key, $value ) import/wp-content-importer-v2/WXRImporter.php:1226
  19. BetterDocs icon BetterDocs30,000+ installs do_action( 'import_post_meta', $post_id, $key, $value ) includes/Admin/Importer/WPImport.php:1450
  20. Timetable and Event Schedule by MotoPress icon Timetable and Event Schedule by MotoPress30,000+ installs do_action( 'import_post_meta', $post_id, $key, $value ) classes/models/class-import.php:899
  21. Apollo13 Framework Extensions icon Apollo13 Framework Extensions20,000+ installs do_action( 'import_post_meta', $post_id, $key, $value ) design_importer/a13-wordpress-importer/class-apollo13-framework-import.php:569
  22. Rara One Click Demo Import icon Rara One Click Demo Import20,000+ installs do_action( 'import_post_meta', $post_id, $key, $value ) includes/extras/class-wxr-importer.php:1158
  23. Envo Extra icon Envo Extra20,000+ installs do_action( 'import_post_meta', $post_id, $key, $value ) lib/envothemes-demo-import/includes/panel/classes/importers/class-wordpress-importer.php:679
  24. Demo Importer Plus icon Demo Importer Plus10,000+ installs do_action( 'import_post_meta', $post_id, $key, $value ) inc/importers/wxr-importer/class-wxr-importer.php:1418
  25. Hester Core icon Hester Core10,000+ installs do_action( 'import_post_meta', $post_id, $key, $data ) core/admin/demo-library/importers/class-wordpress-importer.php:1074
  26. Futurio Extra icon Futurio Extra10,000+ installs do_action( 'import_post_meta', $post_id, $key, $value ) inc/demo/classes/importers/class-wp-import.php:896
  27. Nexter Extension icon Nexter Extension10,000+ installs do_action( 'import_post_meta', $post_id, $key, $value ) include/nexter-template/importer/class.wordpress-importer.php:925
  28. Responsive Starter Templates icon Responsive Starter Templates10,000+ installs do_action( 'import_post_meta', $post_id, $key, $value ) includes/importers/wxr-importer/class-wxr-importer.php:1403
  29. Qode Essential Addons icon Qode Essential Addons10,000+ installs do_action( 'import_post_meta', $post_id, $key, $value ) inc/admin/inc/admin-pages/sub-pages/import/importer/wordpress-importer.php:985
  30. Solace Extra icon Solace Extra10,000+ installs do_action( 'import_post_meta', $post_id, $key, $value ) admin/export-import/class-wp-import.php:964
  31. TemplateSpare icon TemplateSpare10,000+ installs do_action( 'import_post_meta', $post_id, $key, $value ) includes/companion/importer/class-wxr-importer.php:1205
  32. AF Companion icon AF Companion9,000+ installs do_action( 'import_post_meta', $post_id, $key, $value ) inc/importer/class-wxr-importer.php:1160
  33. Themebeez Toolkit icon Themebeez Toolkit8,000+ installs do_action( 'import_post_meta', $post_id, $key, $value ) includes/demo-importer/importer/class-tt-importer-wxr-importer.php:1351
  34. Sinatra Core icon Sinatra Core8,000+ installs do_action( 'import_post_meta', $post_id, $key, $value ) includes/admin/demo-library/importers/class-wordpress-importer.php:832
  35. Blaze Demo Importer icon Blaze Demo Importer7,000+ installs do_action( 'import_post_meta', $post_id, $key, $value ) wordpress-importer/class-wp-import.php:891
  36. Mystery Themes Demo Importer icon Mystery Themes Demo Importer6,000+ installs do_action( 'import_post_meta', $post_id, $key, $value ) includes/wp-importers/class-mtdi-importer.php:945
  37. Masteriyo LMS icon Masteriyo LMS6,000+ installs do_action( 'import_post_meta', $post_id, $key, $value ) includes/StarterTemplates/Importers/WXRImporter/WXRImporter.php:1072
  38. ThemeHunk Customizer icon ThemeHunk Customizer6,000+ installs do_action( 'import_post_meta', $post_id, $key, $value ) import/core/importer/class-wxr-importer.php:1184
  39. Popularis Extra icon Popularis Extra6,000+ installs do_action( 'import_post_meta', $post_id, $key, $value ) includes/panel/classes/importers/class-wordpress-importer.php:831
  40. Spexo Addons for Elementor icon Spexo Addons for Elementor6,000+ installs do_action( 'import_post_meta', $post_id, $key, $value ) inc/admin/import/importers/wxr-importer/class-wxr-importer.php:1192
  41. Sparkle Demo Importer icon Sparkle Demo Importer5,000+ installs do_action( 'import_post_meta', $post_id, $key, $value ) wordpress-importer/class-wp-import.php:837
  42. HashThemes Demo Importer icon HashThemes Demo Importer5,000+ installs do_action( 'import_post_meta', $post_id, $key, $value ) wordpress-importer/class-wp-import.php:898
  43. Hunk Companion icon Hunk Companion5,000+ installs do_action( 'import_post_meta', $post_id, $key, $value ) import/core/importer/class-wxr-importer.php:1184
  44. LearnPress icon LearnPress5,000+ installs do_action( 'import_post_meta', $post_id, $key, $value ) inc/admin/providers/learnpress/class-lp-import-learnpress.php:593
  45. Kits, Templates and Patterns icon Kits, Templates and Patterns4,000+ installs do_action( 'import_post_meta', $post_id, $key, $value ) includes/importers/wordpress-importer/class-wxr-importer.php:919
  46. SKT Themes Demo Import icon SKT Themes Demo Import4,000+ installs do_action( 'import_post_meta', $post_id, $key, $value ) inc/importer/class-wxr-importer.php:1157
  47. News Kit Addons For Elementor icon News Kit Addons For Elementor3,000+ installs do_action( 'import_post_meta', $post_id, $key, $value ) admin/importer/class-wordpress-importer.php:900
  48. CubeWP Framework icon CubeWP Framework3,000+ installs do_action( 'import_post_meta', $post_id, $key, $value ) cube/importer/wordpress-importer.php:890
  49. WP Travel icon WP Travel3,000+ installs do_action( 'import_post_meta', $post_id, $key, $value ) inc/admin/importer/class-wp-import.php:877
  50. WP Layouts icon WP Layouts3,000+ installs do_action( 'import_post_meta', $post_id, $key, $value ) includes/site-import/wordpress-importer.php:798
  51. Easy Demo Importer icon Easy Demo Importer2,000+ installs do_action( 'import_post_meta', $post_id, $key, $value ) lib/wordpress-importer/class-wp-import.php:1056
  52. EnvoThemes Demo Import icon EnvoThemes Demo Import2,000+ installs do_action( 'import_post_meta', $post_id, $key, $value ) includes/panel/classes/importers/class-wordpress-importer.php:883
  53. Ashe Extra icon Ashe Extra2,000+ installs do_action( 'import_post_meta', $post_id, $key, $value ) includes/importers/wxr-importer.php:1171
  54. aThemeArt Theme Helper icon aThemeArt Theme Helper2,000+ installs do_action( 'import_post_meta', $post_id, $key, $value ) includes/panel/classes/importers/class-wordpress-importer.php:883
  55. aBlocks icon aBlocks2,000+ installs do_action( 'import_post_meta', $post_id, $key, $value ) includes/import/wp-import.php:774
  56. Restaurant Menu and Food Ordering icon Restaurant Menu and Food Ordering2,000+ installs do_action( 'import_post_meta', $post_id, $key, $value ) classes/models/class-import.php:566
  57. Kenta Companion icon Kenta Companion2,000+ installs do_action( 'import_post_meta', $post_id, $key, $value ) src/DemoImporter/ContentImporter/WXRImporter.php:907
  58. MantraBrain Starter Sites icon MantraBrain Starter Sites1,000+ installs do_action( 'import_post_meta', $post_id, $key, $value ) includes/importers/wordpress-importer/class-mantrabrain-wxr-importer.php:836
  59. Attesa Extra icon Attesa Extra1,000+ installs do_action( 'import_post_meta', $post_id, $key, $value ) panel/classes/importers/class-wordpress-importer.php:882
  60. CWW Companion icon CWW Companion1,000+ installs do_action( 'import_post_meta', $post_id, $key, $value ) inc/importer/demo-importer/classes/importers/class-wordpress-importer.php:859
  61. Anant Sites icon Anant Sites1,000+ installs do_action( 'import_post_meta', $post_id, $key, $value ) includes/class-wp-import.php:762
  62. Zita Site Library for Elementor icon Zita Site Library for Elementor1,000+ installs do_action( 'import_post_meta', $post_id, $key, $value ) importer/class-wxr-importer.php:1184
  63. Di Themes Demo Site Importer icon Di Themes Demo Site Importer1,000+ installs do_action( 'import_post_meta', $post_id, $key, $value ) inc/di-multipurpose/importers/class-wordpress-importer.php:880
  64. Vayu Blocks icon Vayu Blocks900+ installs do_action( 'import_post_meta', $post_id, $key, $value ) inc/vayu-sites/core/importer/class-wxr-importer.php:1246
  65. Operation Demo Importer icon Operation Demo Importer800+ installs do_action( 'import_post_meta', $post_id, $key, $value ) classes/importers/class-wordpress-importer.php:859
  66. Omnipress icon Omnipress700+ installs do_action( 'import_post_meta', $post_id, $key, $value ) includes/Libraries/importer/class-wp-import.php:912
  67. Century ToolKit icon Century ToolKit700+ installs do_action( 'import_post_meta', $post_id, $key, $value ) includes/panel/classes/importers/class-wordpress-importer.php:828
  68. Bard Extra icon Bard Extra600+ installs do_action( 'import_post_meta', $post_id, $key, $value ) includes/importers/class-wordpress-importer.php:860
  69. Theme One Click Demo Importer icon Theme One Click Demo Importer400+ installs do_action( 'import_post_meta', $post_id, $key, $value ) inc/core/classes/importer/class-wxr-importer.php:1126
  70. RealPress icon RealPress400+ installs do_action( 'import_post_meta', $post_id, $key, $value ) import/wordpress-importer/class-wp-import.php:958
  71. CV Demo Importer icon CV Demo Importer300+ installs do_action( 'import_post_meta', $post_id, $key, $value ) includes/wp-importers/class-cvdi-importer.php:933
  72. Academy Starter Templates icon Academy Starter Templates300+ installs do_action( 'import_post_meta', $post_id, $key, $value ) includes/library/awesomemotive/wxr-importer.php:1238
  73. IT Listings icon IT Listings200+ installs do_action( 'import_post_meta', $post_id, $key, $value ) inc/importers/wordpress-importer/class-wxr-importer.php:863
  74. Wishful Companion icon Wishful Companion200+ installs do_action( 'import_post_meta', $post_id, $key, $value ) includes/panel/classes/importers/class-wordpress-importer.php:831
  75. Vertex Addons for Elementor icon Vertex Addons for Elementor200+ installs do_action( 'import_post_meta', $post_id, $key, $value ) app/Modules/WPImport/WPImport.php:782
  76. Z Companion icon Z Companion200+ installs do_action( 'import_post_meta', $post_id, $key, $value ) import/importer/class-wxr-importer.php:1184
  77. Realtyna Provisioning icon Realtyna Provisioning200+ installs do_action( 'import_post_meta', $post_id, $key, $value ) app/includes/importer/wordpress-importer.php:848
  78. Tally Theme Setup icon Tally Theme Setup100+ installs do_action( 'import_post_meta', $post_id, $key, $value ) inc/import-xml-old.php:730
  79. Perfectwpthemes Toolkit icon Perfectwpthemes Toolkit100+ installs do_action( 'import_post_meta', $post_id, $key, $value ) includes/demo-importer/importer/class-pwpt-importer-wxr-importer.php:1184
  80. Templazee icon Templazee100+ installs do_action( 'import_post_meta', $post_id, $key, $value ) inc/importer/class-wp-import.php:891
  81. Novex Demo Importer icon Novex Demo Importer70+ installs do_action( 'import_post_meta', $post_id, $key, $value ) lib/wordpress-importer/class-wp-import.php:878
  82. Codegear Starter icon Codegear Starter50+ installs do_action( 'import_post_meta', $post_id, $key, $value ) import/wp-content-importer-v2/WXRImporter.php:1226
  83. Quick Demo Import icon Quick Demo Import50+ installs do_action( 'import_post_meta', $post_id, $key, $value ) includes/importers/WXRImporter.php:757
  84. Simple Theme Demo Importer Plugin icon Simple Theme Demo Importer Plugin50+ installs do_action( 'import_post_meta', $post_id, $key, $value ) wordpress-importer.php:820
  85. LQThemes Companion icon LQThemes Companion40+ installs do_action( 'import_post_meta', $post_id, $key, $value ) inc/templates-importer/wordpress-importer.php:829
  86. Mirrorgrid Demo Importer icon Mirrorgrid Demo Importer20+ installs do_action( 'import_post_meta', $post_id, $key, $value ) includes/importer/class-mg-importer-wxr-importer.php:1166
  87. Flash Demo Import icon Flash Demo Import20+ installs do_action( 'import_post_meta', $post_id, wp_slash( $meta_key ), $value ) inc/importers/class-content-importers.php:226
  88. Admire Extra icon Admire Extra20+ installs do_action( 'import_post_meta', $post_id, $key, $value ) lib/demo/classes/importers/class-wordpress-importer.php:831
  89. EmBe Core icon EmBe Core20+ installs do_action( 'import_post_meta', $post_id, $key, $value ) inc/redux/inc/extensions/wbc_importer/inc/importer/wordpress-importer.php:742
  90. Long Toolkit icon Long Toolkit20+ installs do_action( 'import_post_meta', $post_id, $key, $value ) addons/importer/wordpress-importer/wordpress-importer.php:901
  91. PASS Addons icon PASS Addons20+ installs do_action( 'import_post_meta', $post_id, $key, $value ) admin/common/import/class-wp-import.php:634
  92. Elite Elementor Addons and Widgets icon Elite Elementor Addons and Widgets20+ installs do_action( 'import_post_meta', $post_id, $key, $value ) admin/import/class-wordpress-importer.php:900
  93. TallyKit icon TallyKit10+ installs do_action( 'import_post_meta', $post_id, $key, $value ) components/importer/inc/wordpress-importer.php:743
  94. Import Kyero Feed icon Import Kyero Feed10+ installs do_action( 'import_post_meta', $post_id, $key, $value ) class-kyero-import.php:984
  95. Selective Importers icon Selective Importers10+ installs do_action( 'import_post_meta', $post_id, $key, $value ) wordpress-importer.php:702
  96. Reactive LITE icon Reactive LITE10+ installs do_action( 'import_post_meta', $post_id, $key, $value ) reactive-importer.php:840
  97. cm4all-wp-impex icon cm4all-wp-impex10+ installs do_action( 'import_post_meta', $post_id, $key, $value ) inc/impex-import-extension-content.php:400
  98. WP FetLife Importer icon WP FetLife Importer10+ installs do_action( 'import_post_meta', $post_id, $key, $value ) wp-fetlife-importer.php:638
  99. Scintilla Demo Importer icon Scintilla Demo Importer10+ installs do_action( 'import_post_meta', $post_id, $key, $value ) lib/wordpress-importer/class-wp-import.php:874
  100. WPHobby Demo Import icon WPHobby Demo Import10+ installs do_action( 'import_post_meta', $post_id, $key, $value ) includes/importers/wxr-importer/class-wxr-importer.php:1184
  101. Realty Pack Core icon Realty Pack Core10+ installs do_action( 'import_post_meta', $post_id, $key, $value ) app/importer/wordpress-importer.php:848
  102. Brand Demo Import icon Brand Demo Import10+ installs do_action( 'import_post_meta', $post_id, $key, $value ) inc/wordpress-importer.php:828
  103. SaykoAI Companion icon SaykoAI CompanionFewer than 10 installs do_action( 'import_post_meta', $post_id, $key, $value ) includes/admin/starter-sites/import/class-wp-importer.php:1141
  104. Azeen Core icon Azeen CoreFewer than 10 installs do_action( 'import_post_meta', $post_id, $key, $value ) inc/demo/classes/importers/class-wordpress-importer.php:828
  105. Codeless Cloud Starter Sites icon Codeless Cloud Starter SitesFewer than 10 installs do_action( 'import_post_meta', $post_id, $key, $value ) includes/Importers/WP/WP_Import.php:528
  106. Qube Tools icon Qube ToolsFewer than 10 installs do_action( 'import_post_meta', $post_id, $key, $value ) includes/modules/demo/importers/wpimporter.php:831
  107. LoveIt.com Importer icon LoveIt.com ImporterFewer than 10 installs do_action( 'import_post_meta', $post_id, $key, $value ) loveit-importer-class.php:630
  108. Hawk Core icon Hawk CoreFewer than 10 installs do_action( 'import_post_meta', $post_id, $key, $value ) includes/admin/demo-library/importers/class-wordpress-importer.php:832
  109. WPMU DEFAULT CONTENT IMPORT icon WPMU DEFAULT CONTENT IMPORTFewer than 10 installs do_action( 'import_post_meta', $post_id, $_key, $value ) wpmu_default.php:302
  110. Wyvern Toolkit icon Wyvern ToolkitFewer than 10 installs do_action( 'import_post_meta', $post_id, $key, $value ) modules/import-export/inc/importers/content-importer/class-wp-import.php:837
  111. Community Server Importer icon Community Server ImporterFewer than 10 installs do_action( 'import_post_meta', $post_id, $_key, $value ) communityserver.php:1199

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.