| [ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Source view] [Print] [Project Stats]
(no description)
| File Size: | 355 lines (8 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
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. return: array param: string $importer_name param: string $blog_id |
| count_imported_posts( $importer_name, $blog_id ) X-Ref |
| Returns count of imported permalinks from WordPress database. return: int param: string $importer_name param: string $blog_id |
| get_imported_comments( $blog_id ) X-Ref |
| Sets array with imported comments from WordPress database. return: array param: string $blog_id |
| set_blog( $blog_id ) X-Ref |
| Sets the blog to import to. Accepts a numeric blog ID or a URL string. When given a URL, the blog is looked up by domain and path. On multisite, switches to the resolved blog. Exits with an error if the blog cannot be found. return: int Blog ID on success. Exits on failure. param: int|string $blog_id Blog ID or URL. |
| set_user( $user_id ) X-Ref |
return: int param: int $user_id |
| cmpr_strlen( $a, $b ) X-Ref |
| Sorts by strlen, longest string first. return: int param: string $a param: string $b |
| get_page($url,$username = '',$password = '',$head = false) X-Ref |
| Gets URL. return: array param: string $url param: string $username param: string $password param: bool $head |
| bump_request_timeout( $val ) X-Ref |
| Bumps up the request timeout for http requests. return: int param: int $val |
| is_user_over_quota() X-Ref |
| Checks if user has exceeded disk quota. return: bool |
| min_whitespace( $text ) X-Ref |
| Replaces newlines, tabs, and multiple spaces with a single space. return: string param: string $text |
| stop_the_insanity() X-Ref |
| Resets global variables that grow out of control during imports. |
| get_cli_args( $param, $required = false ) X-Ref |
| Returns value of command line params. Exits when a required param is not set. return: string|true|null|never The parameter value or true if found, null otherwise. param: string $param The parameter name to retrieve. param: bool $required Optional. Whether the parameter is required. Default false. |
| Generated : Wed Apr 15 08:20:10 2026 | Cross-referenced by PHPXref |