wordpress_importer_init

The WordPress Importer wordpress importer init function.

Description

wordpress_importer_init(); 

Usage

  1. if ( !function_exists( 'wordpress_importer_init' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'wordpress-importer/wordpress-importer.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = wordpress_importer_init(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/wordpress-importer.php  
  1. function wordpress_importer_init() { 
  2. load_plugin_textdomain( 'wordpress-importer', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' ); 
  3.  
  4. /** 
  5. * WordPress Importer object for registering the import callback 
  6. * @global WP_Import $wp_import 
  7. */ 
  8. $GLOBALS[wp_import] = new WP_Import(); 
  9. register_importer( 'wordpress', 'WordPress', __('Import <strong>posts, pages, comments, custom fields, categories, and tags</strong> from a WordPress export file.', 'wordpress-importer'), array( $GLOBALS[wp_import], 'dispatch' ) );