Class WP_Importer

Description

WP_Importer base class

Located in /wp-admin/includes/class-wp-importer.php (line 5)


	
			
Method Summary
void __construct ()
int bump_request_timeout (int $val)
int cmpr_strlen (string $a, string $b)
int count_imported_posts ( $importer_name, string $bid)
array get_imported_comments (string $bid)
array get_imported_posts ( $importer_name, string $bid)
array get_page (string $url, [string $username = ''], [string $password = ''], [bool $head = false])
string min_whitespace (string $string)
void set_blog ( $blog_id)
void set_user ( $user_id)
Methods
Constructor __construct (line 11)

Class Constructor

void __construct ()
bump_request_timeout (line 205)

Bump up the request timeout for http requests

int bump_request_timeout (int $val)
  • int $val
cmpr_strlen (line 170)

Sort by strlen, longest string first

int cmpr_strlen (string $a, string $b)
  • string $a
  • string $b
count_imported_posts (line 56)

Return count of imported permalinks from WordPress database

int count_imported_posts ( $importer_name, string $bid)
  • string $bid
  • $importer_name
get_imported_comments (line 82)

Set array with imported comments from WordPress database

array get_imported_comments (string $bid)
  • string $bid
get_imported_posts (line 19)

Returns array with imported permalinks from WordPress database

array get_imported_posts ( $importer_name, string $bid)
  • string $bid
  • $importer_name
get_page (line 183)

GET URL

array get_page (string $url, [string $username = ''], [string $password = ''], [bool $head = false])
  • string $url
  • string $username
  • string $password
  • bool $head
is_user_over_quota (line 214)

Check if user has exceeded disk quota

bool is_user_over_quota ()
min_whitespace (line 233)

Replace newlines, tabs, and multiple spaces with a single space

string min_whitespace (string $string)
  • string $string
set_blog (line 118)
void set_blog ( $blog_id)
  • $blog_id
set_user (line 148)
void set_user ( $user_id)
  • $user_id
stop_the_insanity (line 242)

Reset global variables that grow out of control during imports

void stop_the_insanity ()

Documentation generated on Tue, 15 May 2012 23:17:54 +0000 by phpDocumentor 1.4.1