/**
  * Delete ES post when WP post is deleted
  *
  * @param int $post_id
  * @since 0.1.0
  */
 public function action_delete_post($post_id)
 {
     if (!current_user_can('edit_post', $post_id) || 'revision' === get_post_type($post_id)) {
         return;
     }
     do_action('ep_delete_post', $post_id);
     ep_delete_post($post_id);
 }
 /**
  * Delete ES post when WP post is deleted
  *
  * @param int $post_id
  * @since 0.1.0
  */
 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);
 }