EP_Sync_Manager::action_delete_post PHP Method

action_delete_post() public method

Delete ES post when WP post is deleted
Since: 0.1.0
public action_delete_post ( integer $post_id )
$post_id integer
    public function action_delete_post($post_id)
    {
        if (!current_user_can('edit_post', $post_id) && !apply_filters('ep_sync_delete_permissions_bypass', false, $post_id) || 'revision' === get_post_type($post_id)) {
            return;
        }
        do_action('ep_delete_post', $post_id);
        ep_delete_post($post_id, false);
    }