What I would advice, and have done myself when making WordPress sites for clients.
Create a custom post type that they can’t get access to. You can achieve this by conditionally removing the post type from the admin sidebar.
One of the ways to solve that problem is to add a custom capability to the user(s) that you would like to allow editing these critical pages, lets call the capability “edit_ciritical_page”
Then in your function.php/file included from function.php/plugin file you say
if (!current_user_can("edit_ciritcal_page") {
remove_menu_page('edit.php?post_type=critical_post_type');
}
If you don’t what to add the custom capability, you could also just check it based on the username/user email.
Related Posts:
- Passing parameters to a custom page template using clean urls
- Create built-in pages without creating actual pages
- How to create custom URL routes?
- Use a template file for a specific url without creating a page
- How to retrieve $_GET variables from rewritten URLs?
- How Can I Have A URL Changed Based on the Originating URL?
- custom template for custom url
- Prevent WordPress from Rewriting URL for one template
- Load an url with minimal/no DB queries
- Create Dynamic SEO Friendly URL for Virtual Page
- Rewrite rules automatically for pages using specific template
- URL rewriting with custom user meta “/%shop_name%/gallery/%gallery%”
- Capturing /page-name/[0-99999] in both template and number
- Pass parameters to static home page brings up index.php latest posts
- How can I create custom URL routes?
- Add pagination to a template loaded by query variable
- Rewrite rule shows 404 page
- How to show one page with two different templates
- Using custom url parameters in a page
- Show index.php template instead of 404 page template
- How to create dynamic URLs on WordPress?
- How to redirect to a login virtual page?
- Get parameters and custom page template
- URL rewrite before template_redirect called
- Add dynamic url with external page in WordPress
- Get content from other database table based on an ID and rewrite URL
- Masking wp-content/themes/name/images to just images directory using htaccess
- Using custom/dynamic “slug” for a page
- How do I remove a rewrite rule?
- Use subdomain for certain urls
- Can I call a custom plugin with a direct URL
- Custom slug in front of search URL
- Display posts with author in the url with custom post types
- Clash of the rewrites
- How-to add rewrite rules to point the uploads folder to a subdomain
- Loading custom page template via plugin
- Custom taxonomies, with custom rewrites/slug, AND loading a taxonomy archive template from a plugin
- Limit number of pages that use a specific template?
- Author url rewrite
- Tricky URL rewrite with custom values in url
- Search url wp-rewrite after redirect?
- Create Page that uses specific template
- Add rewrite rule for rewrite endpoint
- Issue with using .htaccess to redirect feedburner feed
- Adjust which tempalte a page uses with a function?
- is_page_template not working as expected
- Is it safe to include a javascript file in a template’s php file?
- ‘rewrite_rules_array’ or ‘generate_rewrite_rules’ for adding custom rewrite rules?
- Custom page template not working
- How to rewrite taxonomy and tags URL
- Changing WordPress Address URL disaster
- Conditionally display different images before the content in a page template
- WordPress 3.9 breaks invalid permalinks.. code fix possible?
- Hide admin login without plugin
- Need help with simple rewrite rule (shouldn’t this be easy?)
- “View post” leads to odd URL
- Redirect HTTP to HTTPS for all sub domains (blog posts)
- Get url param no longer works when using add_rewrite_rule
- How can I redirect product url to category then product url?
- Map secondary domain to other’s virtual subfolder
- All top-level pages are using index.php as template
- adding custom controller called by front-end
- rewrite attachment url with attachment title
- get_file_data to read data for Custom Template File?
- htaccess rewrite, adding segment to url
- Custom Download Link
- How To Load an HTML File As A WordPress Page (With No 301/No Redirect)
- Page template for a site from network
- How to identify and hide/remove an element from a WordPress page [closed]
- Rewrite to load homepage for a different url
- Access or edit custom generated permalinks with WP_Rewrite
- Custom Structure permalinks error 404
- WordPress Rewrite rule is not working
- how to move another machine or server without dealing with IP
- Pull comments from one page/post into another page/post?
- templates with page teasers Or Featured Items
- change url for portfolio image
- Is it possible to create custom links inside a template?
- Use URI suffix as parameter and ignore when resolving page
- Why wordpress rewrite my custom URL?
- Rewrite rule regex help required
- Rewrite dynamic URLs as pretty URLs in WordPress functions.php (add_rewrite_rule) – what’s wrong with my code?
- Rewrite rule not working, suspect redirect string
- WordPress index in subdirectory, blogposts in root directory
- Rewrite Url using .htaccess or hook
- How to use a RewriteRule to change endpoint url
- Custom taxonomy Rewrite Rule
- I want to add one extra field to my URLs, I’m using Rewrite functions but it doesn’t work
- .htaccess RewriteRule to include post type and taxonomy
- Is there a way to share a template/markup with the JSON API so that it doesn’t need to be declared both in PHP and in JS?
- WPNetwork with custom URL Rewrite rules
- WordPress index page is returning 404 and admin page requires /index.php in url
- Stop wordpress to redirecting home page if no page found
- Additional .htaccess rules based on wp page
- URL Rewriting in WordPress
- URL rewrites af
- Lost WordPress website access after changing URL [closed]
- Spurious URL structure (Adding extra /0/s)
- Programmatically add a custom url route “/category/index.json” to return a collection of posts in json
- WP-Include rewrite directory