Action hook 'load-importer-{$importer}'

in WP Core File wp-admin/admin.php at line 336

View Source

load-importer-{$importer}

Action Hook
Description
Fires before an importer screen is loaded. The dynamic portion of the hook name, `$importer`, refers to the importer slug. Possible hook names include: - `load-importer-blogger` - `load-importer-wpcat2tag` - `load-importer-livejournal` - `load-importer-mt` - `load-importer-rss` - `load-importer-tumblr` - `load-importer-wordpress`

Hook Information

File Location wp-admin/admin.php View on GitHub
Hook Type Action
Line Number 336

Hook Parameters

This hook doesn't accept any parameters.

Usage Examples

Basic Usage
<?php
// Hook into load-importer-{$importer}
add_action('load-importer-{$importer}', 'my_custom_function');

function my_custom_function() {
    // Your custom code here
}

Source Code Context

wp-admin/admin.php:336 - How this hook is used in WordPress core
<?php
 331  	 *  - `load-importer-tumblr`
 332  	 *  - `load-importer-wordpress`
 333  	 *
 334  	 * @since 3.5.0
 335  	 */
 336  	do_action( "load-importer-{$importer}" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
 337  
 338  	// Used in the HTML title tag.
 339  	$title        = __( 'Import' );
 340  	$parent_file  = 'tools.php';
 341  	$submenu_file = 'import.php';

PHP Documentation

<?php
/**
	 * Fires before an importer screen is loaded.
	 *
	 * The dynamic portion of the hook name, `$importer`, refers to the importer slug.
	 *
	 * Possible hook names include:
	 *
	 *  - `load-importer-blogger`
	 *  - `load-importer-wpcat2tag`
	 *  - `load-importer-livejournal`
	 *  - `load-importer-mt`
	 *  - `load-importer-rss`
	 *  - `load-importer-tumblr`
	 *  - `load-importer-wordpress`
	 *
	 * @since 3.5.0
	 */
Quick Info
  • Hook Type: Action
  • Parameters: 0
  • File: wp-admin/admin.php
Related Hooks

Related hooks will be displayed here in future updates.