tumblr_importer_init

Tumblr Importer Initialisation routines.

Description

tumblr_importer_init(); 

Usage

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

Defined (1)

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

/tumblr-importer.php  
  1. function tumblr_importer_init() { 
  2. global $tumblr_import; 
  3. load_plugin_textdomain( 'tumblr-importer', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' ); 
  4.  
  5. $tumblr_import = new Tumblr_Import(); 
  6. register_importer('tumblr', __('Tumblr', 'tumblr-importer'), __('Import posts from a Tumblr blog.', 'tumblr-importer'), array ($tumblr_import, 'start')); 
  7. if ( !defined('TUMBLR_MAX_IMPORT') ) 
  8. define ('TUMBLR_MAX_IMPORT', 20);