Function Hook_task_import_wordpress->run
Definitions
sources/hooks/systems/tasks/import_wordpress.php
- Run the task hook.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: array
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$is_validated | BINARY | required parameter | N/A | N/A | Whether to import as validated |
$download_images | BINARY | required parameter | N/A | N/A | Whether to download remote images |
$to_own_account | BINARY | required parameter | N/A | N/A | Whether to import everything to the task initiator's account |
$import_blog_comments | BINARY | required parameter | N/A | N/A | Whether to import comments |
$import_to_blog | BINARY | required parameter | N/A | N/A | Whether to import everything to blog news categories |
$import_wordpress_users | boolean | required parameter | N/A | N/A | Whether to import Wordpress users |
Return
- A tuple of at least 2: Return mime-type, content (either Tempcode, or a string, or a filename and file-path pair to a temporary file), map of HTTP headers if transferring immediately, map of ini_set commands if transferring immediately (null: show standard success message)
- Type: ?array
- Set: N/A
- Range: N/A