[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-admin/includes/ -> class-wp-importer.php (summary)

(no description)

File Size: 326 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

WP_Importer:: (13 methods):
  __construct()
  get_imported_posts()
  count_imported_posts()
  get_imported_comments()
  set_blog()
  set_user()
  cmpr_strlen()
  get_page()
  bump_request_timeout()
  is_user_over_quota()
  min_whitespace()
  stop_the_insanity()
  get_cli_args()


Class: WP_Importer  - X-Ref

WP_Importer base class

__construct()   X-Ref
Class Constructor


get_imported_posts( $importer_name, $blog_id )   X-Ref
Returns array with imported permalinks from WordPress database

param: string $importer_name
param: string $blog_id
return: array

count_imported_posts( $importer_name, $blog_id )   X-Ref
Return count of imported permalinks from WordPress database

param: string $importer_name
param: string $blog_id
return: int

get_imported_comments( $blog_id )   X-Ref
Set array with imported comments from WordPress database

param: string $blog_id
return: array

set_blog( $blog_id )   X-Ref

param: int $blog_id
return: int|void

set_user( $user_id )   X-Ref

param: int $user_id
return: int|void

cmpr_strlen( $a, $b )   X-Ref
Sort by strlen, longest string first

param: string $a
param: string $b
return: int

get_page( $url, $username = '', $password = '', $head = false )   X-Ref
GET URL

param: string $url
param: string $username
param: string $password
param: bool   $head
return: array

bump_request_timeout( $val )   X-Ref
Bump up the request timeout for http requests

param: int $val
return: int

is_user_over_quota()   X-Ref
Check if user has exceeded disk quota

return: bool

min_whitespace( $text )   X-Ref
Replace newlines, tabs, and multiple spaces with a single space.

param: string $text
return: string

stop_the_insanity()   X-Ref
Resets global variables that grow out of control during imports.

since: 3.0.0

get_cli_args( $param, $required = false )   X-Ref
Returns value of command line params.
Exits when a required param is not set.

param: string $param
param: bool   $required
return: mixed



Generated: Sun Dec 22 01:00:02 2024 Cross-referenced by PHPXref 0.7.1