Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • Programming
    • C
    • C++
    • Java
  • Web Development
    • Java Script
    • jQuery
    • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • Programming
    • C
    • C++
    • Java
  • Web Development
    • Java Script
    • jQuery
    • PHP

What is the best way to overwrite /wp-admin/ms-delete-site.php

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.

Categories plugin-development Tags multisite, plugin-development
Post navigation
Woocommerce view order link in customer emails
Hide WYSIWYG editor on certain templates

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Allow Contributor to edit published post and filter by page id
  • Custom Rest API POST endpoint with conditionally required parameters
  • add element with add_action to posts from a specific category ID
  • PHP Warning: Attempt to read property “term_id” on bool
  • Is there a way to migrate via wordpress dashboard?
  • Remove Body Classes
  • Is there a JavaScript equivalent of get_post_field?
  • 404 error comes up when I go to wp-admin after first installation [closed]
  • Count the number of custom posts per user
  • How do I get reusable blocks via frontend REST API?
© 2022 Read For Learn
  • Programming
    • C
    • C++
    • Java
    • javascript
    • Python
    • R
  • Web Development
    • Java Script
    • jQuery
    • PHP
    • WordPress
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Microsoft Office
  • modx
  • root
  • Tips & Trick
  • Tools
  • windows