Method |
Description |
|
WP_Import ( ) |
|
|
allow_create_users ( ) : boolean |
Decide whether or not the importer is allowed to create users. |
|
allow_fetch_attachments ( ) : boolean |
Decide whether or not the importer should attempt to download attachment files. |
|
author_select ( integer $n, array $author ) |
Display import options for an individual author. That is, either create
a new user based on import info or map to an existing user |
|
backfill_attachment_urls ( ) |
Use stored mapping information to update old attachment URLs |
|
backfill_parents ( ) |
Attempt to associate posts and menu items with previously missing parents |
|
bump_request_timeout ( $val ) : integer |
Added to http_request_timeout filter to force timeout at 60 seconds during import |
|
cmpr_strlen ( $a, $b ) |
return the difference in length between two strings |
|
dispatch ( ) |
Registered callback function for the WordPress Importer |
|
fetch_remote_file ( string $url, array $post ) : array | WP_Error |
Attempt to download a remote file attachment |
|
footer ( ) |
Close div.wrap |
|
get_author_mapping ( ) |
Map old author logins to local user IDs based on decisions made
in import options form. Can map to an existing user, create a new user
or falls back to the current user in case of error with either of the previous |
|
get_authors_from_import ( array $import_data ) |
Retrieve authors from parsed WXR data |
|
greet ( ) |
Display introductory text and file upload form |
|
handle_upload ( ) : boolean |
Handles the WXR upload and initial parsing of the file to prepare for
displaying author import options |
|
header ( ) |
Display import page title |
|
import ( string $file ) |
The main controller for the actual import stage. |
|
import_end ( ) |
Performs post-import cleanup of files and the cache |
|
import_options ( ) |
Display pre-import options, author importing/mapping and option to
fetch attachments |
|
import_start ( string $file ) |
Parses the WXR file and prepares us for the task of processing parsed data |
|
is_valid_meta_key ( string $key ) : string | boolean |
Decide if the given meta key maps to information we will want to import |
|
max_attachment_size ( ) : integer |
Decide what the maximum file size for downloaded attachments is. |
|
parse ( string $file ) : array |
Parse a WXR file |
|
process_attachment ( array $post, string $url ) : integer | WP_Error |
If fetching attachments is enabled then attempt to create a new attachment |
|
process_categories ( ) |
Create new categories based on import information |
|
process_menu_item ( array $item ) |
Attempt to create a new menu item from import data |
|
process_posts ( ) |
Create new posts based on import information |
|
process_tags ( ) |
Create new post tags based on import information |
|
process_terms ( ) |
Create new terms based on import information |
|
remap_featured_images ( ) |
Update _thumbnail_id meta to new, imported attachment IDs |
|