-
Notifications
You must be signed in to change notification settings - Fork 20
Hooks
More will be added to improve custom installations
NOTE: Not fully updated with the latest hooks. Will be updated soon.
drupal2wp_max_execution_time
- Set the max_execution_time for the script
drupal2wp_drupal_post_types
- modify Drupal post_types (post types are an array of post_type as the key and the total as the value)
drupal2wp_drupal_roles
- modify Drupal roles
drupal2wp_drupal_terms
- modify Drupal terms
drupal2wp_modify_post_type
- modify post_type (1 arg - $post)
drupal2wp_modify_post
- modify post array (1 arg - $post)
drupal2wp_errors
- Add errors to the complete page (1 arg - $errors) append to array and return array
drupal2wp_htaccess_rewrite_rules
- Add rewrite rules to the complete page (1 arg - $rewrites) append to array and return array
Initialization
drupal2wp_init
- On initiation of the plugin (1 arg - $importObj)
drupal2wp_3rd_party_options
- Allows for third party options to be selected in step1 (1 arg - $thirdPartyOptions) append to array and return array
Settings
drupal2wp_fix_settings
- Runs after the initial fix settings is complete (1 arg - $importObj)
Truncate
drupal2wp_importer_truncate
- Runs after the initial truncate is complete (1 arg - $importObj)
Terms
drupal2wp_importer_terms
- Runs after the initial terms are imported (1 arg - $importObj)
Content
Filter: drupal2wp_modify_post_type
is called before drupal2wp_modify_post
Filter: drupal2wp_modify_post
is called before post is saved
drupal2wp_content_after_post_insert
- Runs after the post has been inserted (2 args - $post, $importObj)
drupal2wp_after_import_content
- Runs after the content has been imported (1 arg - $importObj) [Note: you will have to associate media/taxonomies on your own here]
Users
drupal2wp_after_import_users
- Runs after the users have been imported (1 arg - $importObj)
Complete
drupal2wp_importer_complete
- Show complete output before errors
drupal2wp_import_terms_form
drupal2wp_import_content_form
drupal2wp_import_media_form
drupal2wp_import_users_form
drupal2wp_import_users_unchecked_form