Property | Type | Description | |
---|---|---|---|
$sync_post_queue | array | Save posts for indexing later |
Method | Description | |
---|---|---|
__construct ( ) | Placeholder method | |
action_delete_blog_from_index ( $blog_id ) | Remove blog from index when a site is deleted, archived, or deactivated | |
action_delete_post ( integer $post_id ) | Delete ES post when WP post is deleted | |
action_index_sync_queue ( ) | Sync queued posts on shutdown. We do this in case a post is updated multiple times. | |
action_queue_meta_sync ( integer $meta_id, integer $object_id, string $meta_key, string $meta_value ) | When whitelisted meta is updated, queue the post for reindex | |
action_sync_on_update ( $post_ID ) | Sync ES index with what happened to the post being saved | |
destroy ( ) | Remove actions and filters | |
factory ( ) : EP_Sync_Manager | Return a singleton instance of the current class | |
setup ( ) | Setup actions and filters | |
sync_post ( integer $post_id, boolean $blocking = true ) : boolean | array | Sync a post for a specific site or globally. |
public action_delete_blog_from_index ( $blog_id ) | ||
$blog_id |
public action_delete_post ( integer $post_id ) | ||
$post_id | integer |
public action_index_sync_queue ( ) |
public action_sync_on_update ( $post_ID ) | ||
$post_ID |
public static factory ( ) : EP_Sync_Manager | ||
return | EP_Sync_Manager |
public array $sync_post_queue | ||
return | array |