WordPress action hook
wp_import_insert_post
Fired by 105 WordPress plugins, running on 16.6M+ sites between them.
How to use wp_import_insert_post
It's an action: your callback runs at that point and receives 4 arguments. Nothing needs to be returned.
Add this to your theme's functions.php or a small custom plugin:
add_action( 'wp_import_insert_post', function( $post_id, $original_post_ID, $postdata, $post ) {
// Your code runs here.
}, 10, 4 );Argument names come from WPvivid's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
105 plugins that fire wp_import_insert_post
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
Elementor Agent Ready Website Builder10+ million installs
do_action( 'wp_import_insert_post', $post_id, $original_post_id, $postdata, $post )core/utils/import-export/wp-import.php:691 -
WordPress Importer2+ million installs
do_action( 'wp_import_insert_post', $post_id, $original_post_id, $postdata, $post )class-wp-import.php:960 -
Starter Templates: AI-Powered Website Templates for Elementor & Gutenberg1+ million installs
do_action( 'wp_import_insert_post', $post_id, $original_id, $postdata, $data )inc/lib/starter-templates-importer/importer/wxr-importer.php:1016 -
WPvivid900,000+ installs
do_action( 'wp_import_insert_post', $post_id, $original_post_ID, $postdata, $post )includes/class-wpvivid-importer.php:1148 -
Royal Addons for Elementor600,000+ installs
do_action( 'wp_import_insert_post', $post_id, $original_post_id, $postdata, $post )admin/import/class-wordpress-importer.php:744 -
Ocean Extra400,000+ installs
do_action( 'wp_import_insert_post', $post_id, $original_post_id, $postdata, $post )includes/onboarding/class/importer/wp-importer.php:775 -
Blocksy Companion300,000+ installs
do_action( 'wp_import_insert_post', $post_id, $original_post_ID, $postdata, $post )framework/features/demo-install/wp-importer.php:989 -
Templately300,000+ installs
do_action( 'wp_import_insert_post', $post_id, $original_post_id, $postdata, $post )modules/full-site-import/WPImport.php:854 -
Popup Builder200,000+ installs
do_action( 'wp_import_insert_post', $post_id, $original_post_ID, $postdata, $post )com/libs/SGPBImporter.php:765 -
Kadence Starter Templates200,000+ installs
do_action( 'wp_import_insert_post', $post_id, $original_id, $postdata, $data )wxr-importer/WXRImporter.php:874 -
Starter Sites & Templates by Neve100,000+ installs
do_action( 'wp_import_insert_post', $post_id, $original_post_id, $postdata, $post )includes/Importers/WP/WP_Import.php:505 -
Jupiter X Core70,000+ installs
do_action( 'wp_import_insert_post', $post_id, $original_id, $postdata, $data )includes/control-panel-2/includes/class-wxr-importer.php:826 -
Starter Templates & Sites Pack by ThemeGrill70,000+ installs
do_action( 'wp_import_insert_post', $post_id, $original_id, $postdata, $data )src/Importers/WXRImporter/WXRImporter.php:796 -
Brizy60,000+ installs
do_action( 'wp_import_insert_post', $post_id, $original_post_ID, $postdata, $post )import/importer.php:416 -
aThemes Starter Sites30,000+ installs
do_action( 'wp_import_insert_post', $post_id, $original_id, $postdata, $data )import/wp-content-importer-v2/WXRImporter.php:878 -
BetterDocs30,000+ installs
do_action( 'wp_import_insert_post', $post_id, $original_post_id, $postdata, $post )includes/Admin/Importer/WPImport.php:1255 -
Timetable and Event Schedule by MotoPress30,000+ installs
do_action( 'wp_import_insert_post', $post_id, $original_post_ID, $postdata, $post )classes/models/class-import.php:742 -
Apollo13 Framework Extensions20,000+ installs
do_action( 'wp_import_insert_post', $post_id, $original_post_ID, $postdata, $post )design_importer/a13-wordpress-importer/class-apollo13-framework-import.php:431 -
Rara One Click Demo Import20,000+ installs
do_action( 'wp_import_insert_post', $post_id, $original_id, $postdata, $data )includes/extras/class-wxr-importer.php:851 -
Envo Extra20,000+ installs
do_action( 'wp_import_insert_post', $post_id, $original_post_ID, $postdata, $post )lib/envothemes-demo-import/includes/panel/classes/importers/class-wordpress-importer.php:540 -
Demo Importer Plus10,000+ installs
do_action( 'wp_import_insert_post', $post_id, $original_id, $postdata, $data )inc/importers/wxr-importer/class-wxr-importer.php:1016 -
Animation Addons for Elementor10,000+ installs
do_action( 'wp_import_insert_post', $post_id, $original_id, $postdata, $data )inc/admin/base/AaeaddonWXRImporter.php:1099 -
Futurio Extra10,000+ installs
do_action( 'wp_import_insert_post', $post_id, $original_post_id, $postdata, $post )inc/demo/classes/importers/class-wp-import.php:748 -
Ansar Import10,000+ installs
do_action( 'wp_import_insert_post', $post_id, $original_post_ID, $postdata, $post )includes/class-wp-import.php:653 -
Nexter Extension10,000+ installs
do_action( 'wp_import_insert_post', $post_id, $original_post_ID, $postdata, $post )include/nexter-template/importer/class.wordpress-importer.php:784 -
Responsive Starter Templates10,000+ installs
do_action( 'wp_import_insert_post', $post_id, $original_id, $postdata, $data )includes/importers/wxr-importer/class-wxr-importer.php:1058 -
Qode Essential Addons10,000+ installs
do_action( 'wp_import_insert_post', $post_id, $original_post_ID, $postdata, $post )inc/admin/inc/admin-pages/sub-pages/import/importer/wordpress-importer.php:839 -
Solace Extra10,000+ installs
do_action( 'wp_import_insert_post', $post_id, $original_post_id, $postdata, $post )admin/export-import/class-wp-import.php:800 -
TemplateSpare10,000+ installs
do_action( 'wp_import_insert_post', $post_id, $original_id, $postdata, $data )includes/companion/importer/class-wxr-importer.php:885 -
Hester Core10,000+ installs
do_action( 'wp_import_insert_post', $post_id, $original_post_id, $postdata, $post )core/admin/demo-library/importers/class-wordpress-importer.php:951 -
AF Companion9,000+ installs
do_action( 'wp_import_insert_post', $post_id, $original_id, $postdata, $data )inc/importer/class-wxr-importer.php:853 -
Themebeez Toolkit8,000+ installs
do_action( 'wp_import_insert_post', $post_id, $original_id, $postdata, $data )includes/demo-importer/importer/class-tt-importer-wxr-importer.php:1020 -
Sinatra Core8,000+ installs
do_action( 'wp_import_insert_post', $post_id, $original_post_ID, $postdata, $post )includes/admin/demo-library/importers/class-wordpress-importer.php:703 -
Blaze Demo Importer7,000+ installs
do_action( 'wp_import_insert_post', $post_id, $original_post_ID, $postdata, $post )wordpress-importer/class-wp-import.php:745 -
Mystery Themes Demo Importer6,000+ installs
do_action( 'wp_import_insert_post', $post_id, $original_post_ID, $postdata, $post )includes/wp-importers/class-mtdi-importer.php:800 -
Masteriyo LMS6,000+ installs
do_action( 'wp_import_insert_post', $post_id, $original_id, $postdata, $data )includes/StarterTemplates/Importers/WXRImporter/WXRImporter.php:696 -
ThemeHunk Customizer6,000+ installs
do_action( 'wp_import_insert_post', $post_id, $original_id, $postdata, $data )import/core/importer/class-wxr-importer.php:874 -
Popularis Extra6,000+ installs
do_action( 'wp_import_insert_post', $post_id, $original_post_ID, $postdata, $post )includes/panel/classes/importers/class-wordpress-importer.php:703 -
Spexo Addons for Elementor6,000+ installs
do_action( 'wp_import_insert_post', $post_id, $original_id, $postdata, $data )inc/admin/import/importers/wxr-importer/class-wxr-importer.php:891 -
Sparkle Demo Importer5,000+ installs
do_action( 'wp_import_insert_post', $post_id, $original_post_ID, $postdata, $post )wordpress-importer/class-wp-import.php:700 -
HashThemes Demo Importer5,000+ installs
do_action( 'wp_import_insert_post', $post_id, $original_post_id, $postdata, $post )wordpress-importer/class-wp-import.php:750 -
Hunk Companion5,000+ installs
do_action( 'wp_import_insert_post', $post_id, $original_id, $postdata, $data )import/core/importer/class-wxr-importer.php:874 -
News Magazine X Core4,000+ installs
do_action( 'wp_import_insert_post', $post_id, $original_id, $postdata, $data )admin/import/importers/wxr-importer.php:865 -
Kits, Templates and Patterns4,000+ installs
do_action( 'wp_import_insert_post', $post_id, $original_post_id, $postdata, $post )includes/importers/wordpress-importer/class-wxr-importer.php:771 -
SKT Themes Demo Import4,000+ installs
do_action( 'wp_import_insert_post', $post_id, $original_id, $postdata, $data )inc/importer/class-wxr-importer.php:850 -
News Kit Addons For Elementor3,000+ installs
do_action( 'wp_import_insert_post', $post_id, $original_post_id, $postdata, $post )admin/importer/class-wordpress-importer.php:743 -
CubeWP Framework3,000+ installs
do_action( 'wp_import_insert_post', $post_id, $original_post_ID, $postdata, $post )cube/importer/wordpress-importer.php:745 -
WP Travel3,000+ installs
do_action( 'wp_import_insert_post', $post_id, $original_post_id, $postdata, $post )inc/admin/importer/class-wp-import.php:724 -
WP Layouts3,000+ installs
do_action( 'wp_import_insert_post', $post_id, $original_post_ID, $postdata, $post )includes/site-import/wordpress-importer.php:660 -
Easy Demo Importer2,000+ installs
do_action( 'wp_import_insert_post', $post_id, $original_post_id, $postdata, $post )lib/wordpress-importer/class-wp-import.php:871 -
EnvoThemes Demo Import2,000+ installs
do_action( 'wp_import_insert_post', $post_id, $original_post_ID, $postdata, $post )includes/panel/classes/importers/class-wordpress-importer.php:746 -
Ashe Extra2,000+ installs
do_action( 'wp_import_insert_post', $post_id, $original_id, $postdata, $data )includes/importers/wxr-importer.php:864 -
aThemeArt Theme Helper2,000+ installs
do_action( 'wp_import_insert_post', $post_id, $original_post_ID, $postdata, $post )includes/panel/classes/importers/class-wordpress-importer.php:746 -
Restaurant Menu and Food Ordering2,000+ installs
do_action( 'wp_import_insert_post', $post_id, $original_post_ID, $postdata, $post )classes/models/class-import.php:433 -
Kenta Companion2,000+ installs
do_action( 'wp_import_insert_post', $post_id, $original_post_ID, $postdata, $post )src/DemoImporter/ContentImporter/WXRImporter.php:762 -
MantraBrain Starter Sites1,000+ installs
do_action( 'wp_import_insert_post', $post_id, $original_post_ID, $postdata, $post )includes/importers/wordpress-importer/class-mantrabrain-wxr-importer.php:707 -
Attesa Extra1,000+ installs
do_action( 'wp_import_insert_post', $post_id, $original_post_ID, $postdata, $post )panel/classes/importers/class-wordpress-importer.php:745 -
CWW Companion1,000+ installs
do_action( 'wp_import_insert_post', $post_id, $original_post_ID, $postdata, $post )inc/importer/demo-importer/classes/importers/class-wordpress-importer.php:722 -
Anant Sites1,000+ installs
do_action( 'wp_import_insert_post', $post_id, $original_post_ID, $postdata, $post )includes/class-wp-import.php:633 -
Zita Site Library for Elementor1,000+ installs
do_action( 'wp_import_insert_post', $post_id, $original_id, $postdata, $data )importer/class-wxr-importer.php:873 -
Di Themes Demo Site Importer1,000+ installs
do_action( 'wp_import_insert_post', $post_id, $original_post_ID, $postdata, $post )inc/di-multipurpose/importers/class-wordpress-importer.php:743 -
Vayu Blocks900+ installs
do_action( 'wp_import_insert_post', $post_id, $original_id, $postdata, $data )inc/vayu-sites/core/importer/class-wxr-importer.php:898 -
Operation Demo Importer800+ installs
do_action( 'wp_import_insert_post', $post_id, $original_post_ID, $postdata, $post )classes/importers/class-wordpress-importer.php:722 -
Omnipress700+ installs
do_action( 'wp_import_insert_post', $post_id, $original_post_id, $postdata, $post )includes/Libraries/importer/class-wp-import.php:760 -
Century ToolKit700+ installs
do_action( 'wp_import_insert_post', $post_id, $original_post_ID, $postdata, $post )includes/panel/classes/importers/class-wordpress-importer.php:700 -
Bard Extra600+ installs
do_action( 'wp_import_insert_post', $post_id, $original_post_ID, $postdata, $post )includes/importers/class-wordpress-importer.php:723 -
Theme One Click Demo Importer400+ installs
do_action( 'wp_import_insert_post', $post_id, $original_id, $postdata, $data )inc/core/classes/importer/class-wxr-importer.php:831 -
RealPress400+ installs
do_action( 'wp_import_insert_post', $post_id, $original_post_ID, $postdata, $post )import/wordpress-importer/class-wp-import.php:807 -
CV Demo Importer300+ installs
do_action( 'wp_import_insert_post', $post_id, $original_post_ID, $postdata, $post )includes/wp-importers/class-cvdi-importer.php:788 -
Academy Starter Templates300+ installs
do_action( 'wp_import_insert_post', $post_id, $original_id, $postdata, $data )includes/library/awesomemotive/wxr-importer.php:887 -
IT Listings200+ installs
do_action( 'wp_import_insert_post', $post_id, $original_post_ID, $postdata, $post )inc/importers/wordpress-importer/class-wxr-importer.php:726 -
Wishful Companion200+ installs
do_action( 'wp_import_insert_post', $post_id, $original_post_ID, $postdata, $post )includes/panel/classes/importers/class-wordpress-importer.php:703 -
Vertex Addons for Elementor200+ installs
do_action( 'wp_import_insert_post', $post_id, $original_post_id, $postdata, $post )app/Modules/WPImport/WPImport.php:632 -
Z Companion200+ installs
do_action( 'wp_import_insert_post', $post_id, $original_id, $postdata, $data )import/importer/class-wxr-importer.php:873 -
Realtyna Provisioning200+ installs
do_action( 'wp_import_insert_post', $post_id, $original_post_ID, $postdata, $post )app/includes/importer/wordpress-importer.php:718 -
Tally Theme Setup100+ installs
do_action( 'wp_import_insert_post', $post_id, $original_post_ID, $postdata, $post )inc/import-xml-old.php:602 -
Perfectwpthemes Toolkit100+ installs
do_action( 'wp_import_insert_post', $post_id, $original_id, $postdata, $data )includes/demo-importer/importer/class-pwpt-importer-wxr-importer.php:873 -
Templazee100+ installs
do_action( 'wp_import_insert_post', $post_id, $original_post_id, $postdata, $post )inc/importer/class-wp-import.php:743 -
Smart One Click Setup100+ installs
do_action( 'wp_import_insert_post', $post_id, $original_id, $postdata, $data )inc/CustomWXRImporter.php:987 -
Novex Demo Importer70+ installs
do_action( 'wp_import_insert_post', $post_id, $original_post_id, $postdata, $post )lib/wordpress-importer/class-wp-import.php:730 -
Codegear Starter50+ installs
do_action( 'wp_import_insert_post', $post_id, $original_id, $postdata, $data )import/wp-content-importer-v2/WXRImporter.php:878 -
Quick Demo Import50+ installs
do_action( 'wp_import_insert_post', $post_id, $original_post_ID, $postdata, $post )includes/importers/WXRImporter.php:608 -
Simple Theme Demo Importer Plugin50+ installs
do_action( 'wp_import_insert_post', $post_id, $original_post_ID, $postdata, $post )wordpress-importer.php:691 -
LQThemes Companion40+ installs
do_action( 'wp_import_insert_post', $post_id, $original_post_ID, $postdata, $post )inc/templates-importer/wordpress-importer.php:700 -
Mirrorgrid Demo Importer20+ installs
do_action( 'wp_import_insert_post', $post_id, $original_id, $postdata, $data )includes/importer/class-mg-importer-wxr-importer.php:855 -
Flash Demo Import20+ installs
do_action( 'wp_import_insert_post', intval($content_id), intval($original_id), $contentdata, $content )inc/importers/class-content-importers.php:149 -
Admire Extra20+ installs
do_action( 'wp_import_insert_post', $post_id, $original_post_ID, $postdata, $post )lib/demo/classes/importers/class-wordpress-importer.php:703 -
EmBe Core20+ installs
do_action( 'wp_import_insert_post', $post_id, $original_post_ID, $postdata, $post )inc/redux/inc/extensions/wbc_importer/inc/importer/wordpress-importer.php:614 -
Long Toolkit20+ installs
do_action( 'wp_import_insert_post', $post_id, $original_post_ID, $postdata, $post )addons/importer/wordpress-importer/wordpress-importer.php:774 -
PASS Addons20+ installs
do_action( 'wp_import_insert_post', $post_id, $original_post_id, $postdata, $post )admin/common/import/class-wp-import.php:491 -
Elite Elementor Addons and Widgets20+ installs
do_action( 'wp_import_insert_post', $post_id, $original_post_id, $postdata, $post )admin/import/class-wordpress-importer.php:743 -
TallyKit10+ installs
do_action( 'wp_import_insert_post', $post_id, $original_post_ID, $postdata, $post )components/importer/inc/wordpress-importer.php:615 -
Import Kyero Feed10+ installs
do_action( 'wp_import_insert_post', $post_id, $original_post_id, $postdata, $post )class-kyero-import.php:836 -
Reactive LITE10+ installs
do_action( 'wp_import_insert_post', $post_id, $original_post_ID, $postdata, $post )reactive-importer.php:712 -
cm4all-wp-impex10+ installs
do_action( 'wp_import_insert_post', $post_id, $original_post_id, $postdata, $post )inc/impex-import-extension-content.php:260 -
Scintilla Demo Importer10+ installs
do_action( 'wp_import_insert_post', $post_id, $original_post_id, $postdata, $post )lib/wordpress-importer/class-wp-import.php:726 -
WPHobby Demo Import10+ installs
do_action( 'wp_import_insert_post', $post_id, $original_id, $postdata, $data )includes/importers/wxr-importer/class-wxr-importer.php:873 -
Realty Pack Core10+ installs
do_action( 'wp_import_insert_post', $post_id, $original_post_ID, $postdata, $post )app/importer/wordpress-importer.php:718 -
Brand Demo Import10+ installs
do_action( 'wp_import_insert_post', $post_id, $original_post_ID, $postdata, $post )inc/wordpress-importer.php:700 -
Azeen CoreFewer than 10 installs
do_action( 'wp_import_insert_post', $post_id, $original_post_ID, $postdata, $post )inc/demo/classes/importers/class-wordpress-importer.php:700 -
Codeless Cloud Starter SitesFewer than 10 installs
do_action( 'wp_import_insert_post', $post_id, $original_post_id, $postdata, $post )includes/Importers/WP/WP_Import.php:445 -
Qube ToolsFewer than 10 installs
do_action( 'wp_import_insert_post', $post_id, $original_post_ID, $postdata, $post )includes/modules/demo/importers/wpimporter.php:703 -
SaykoAI CompanionFewer than 10 installs
do_action( 'wp_import_insert_post', $post_id, $original_post_ID, $postdata, $post )includes/admin/starter-sites/import/class-wp-importer.php:985 -
Hawk CoreFewer than 10 installs
do_action( 'wp_import_insert_post', $post_id, $original_post_ID, $postdata, $post )includes/admin/demo-library/importers/class-wordpress-importer.php:703 -
Wyvern ToolkitFewer than 10 installs
do_action( 'wp_import_insert_post', $post_id, $original_post_ID, $postdata, $post )modules/import-export/inc/importers/content-importer/class-wp-import.php:700
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.