Core Class
View Source on Trac ↗
Core Class
WP_Importer
class WP_Importer
// Constructor: function Object() { [native code] } WP_Importer base class
Methods 12 methods
| Method / Return | Description |
|---|---|
| __construct() void | Class Constructor |
| get_imported_posts() array | Returns array with imported permalinks from WordPress database.
Parameters: $importer_name: mixed, $blog_id: mixed |
| count_imported_posts() int | Returns count of imported permalinks from WordPress database.
Parameters: $importer_name: mixed, $blog_id: mixed |
| get_imported_comments() array | Sets array with imported comments from WordPress database.
Parameters: $blog_id: mixed |
| set_blog() (int | No description available.
Parameters: $blog_id: mixed |
| set_user() (int | No description available.
Parameters: $user_id: mixed |
| cmpr_strlen() int | Sorts by strlen, longest string first.
Parameters: $a: mixed, $b: mixed |
| get_page() array | Gets URL.
Parameters: $url: mixed, $username: mixed, $password: mixed, $head: mixed |
| bump_request_timeout() int | Bumps up the request timeout for http requests.
Parameters: $val: mixed |
| is_user_over_quota() bool | Checks if user has exceeded disk quota. |
| min_whitespace() string | Replaces newlines, tabs, and multiple spaces with a single space.
Parameters: $text: mixed |
| stop_the_insanity() void | Resets global variables that grow out of control during imports. |
Class Information
Source File
wp-admin/includes/class-wp-importer.php
Advertisement