Skip to content
This repository has been archived by the owner on Oct 31, 2022. It is now read-only.
Jared Cobb edited this page Jan 7, 2018 · 5 revisions

Overview

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!

Actions

ccb_core_before_insert_update_post

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.

ccb_core_after_insert_update_post

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.

Filters