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);
}