This repository has been archived by the owner on Oct 31, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Hooks
Jared Cobb edited this page Jan 7, 2018
·
5 revisions
There are several hooks that will allow you to customize the synchronization process. Need a hook? Create an issue and let's discuss the best implementation!
This action runs just before a post is inserted or updated during the synchronization process.
Parameter | Type | Description |
---|---|---|
$entity |
SimpleXML |
The entity object to be inserted / updated |
$settings |
array | The settings for the import as defined in the Custom Post Type Class |
$args |
array | The args that will be used for wp_insert_post. |
$post_type |
string | The current post type that will be inserted. |
This action runs just after a post is inserted or updated during the synchronization process.
Parameter | Type | Description |
---|---|---|
$entity |
SimpleXML |
The entity object to be inserted / updated |
$settings |
array | The settings for the import as defined in the Custom Post Type Class |
$args |
array | The args that will be used for wp_insert_post. |
$post_type |
string | The current post type that will be inserted. |
$post_id |
int | The post id of the post that was just inserted or updated. |