Another alternative is to look at the hook map_meta_cap and remove the user’s capability to delete_site
. If you have a restricted set of users or context when you want to allow delete_site
then you can allow the capability.
Another alternative is to look at the hook map_meta_cap and remove the user’s capability to delete_site
. If you have a restricted set of users or context when you want to allow delete_site
then you can allow the capability.