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
- Create custom page templates with plugins?
- How do you create a “virtual” page in WordPress
- Custom templates not showing up in template dropdown
- How to create a front end user profile with a friendly permalink
- Using the Rewrite API to Construct a RESTful URL
- Does WordPress keep track of a post’s URL history and provide automatic redirects?
- Change the “page” slug in pagination
- Understanding add_rewrite_rule
- Override default url for author pages?
- web.config conflict on IIS
- Rewrite Slug for CPT Archive Pages to Plural Name of Slug
- Change author base slug for different roles
- Masking wp-content/themes/name/images to just images directory using htaccess
- How can I load a page template from a plugin?
- Two (or more) parallel (sub-)TLDs that are retained when surfing the site / dynamically set the site address?
- Using custom/dynamic “slug” for a page
- Is there a WordPress plugin that registers a plugin file as a custom page template?
- Page editor missing Templates drop down
- How to make pages slug have priority over any other taxonomies like custom-post, post or category
- Rewrite rules not working in WordPress
- Dynamic Endpoints
- Is it possible to stop selected plugins from loading on certain template pages?
- rewrite rules and querystring
- Adding rewrite endpoint breaks static front page
- How to add custom rewrite rule to .htaccess?
- How do I remove a rewrite rule?
- How do I add a server-independent external rewrite rule?
- Multiple endpoints to same page
- How to pass URL parameters for advanced taxonomy queries with multiple terms for one custom taxonomy
- How to edit contents of dynamic_sidebar()?
- Problem with add_rewrite_rule and pagination (paged and page query_vars)
- Use subdomain for certain urls
- Custom Permalinks for Blog Posts Only
- Unique URL Every Time
- How to move page templates to custom folder?
- Setting a custom sub-path for blog without using pages?
- Ways to have multiple front-page.php templates that can be swapped out?
- generate_rewrite_rules (action) vs add_rewrite_rule (function): which one is preferred?
- How to get IDs for objects in menu branch?
- Detect page type by url (Archive, single, page, author,…)
- Rewrite URL – how to do a SEO-friendly Unicode custom URL?
- I want to create a custom slug in WordPress and output JSON. How do I do this?
- How to make a category page the blog home page?
- add_rewrite_rule: $matches var not replaced by captured value
- Is it possible to manipulate the list of page templates?
- Can I call a custom plugin with a direct URL
- How to show the same content on multiple URLs?
- Custom slug in front of search URL
- Display posts with author in the url with custom post types
- Custom rewrite rules for pages
- Rewrite default post type
- Add Content to Page without shortcodes
- Custom permalinks with NextGEN Gallery
- Clash of the rewrites
- External/non-WP rewrite rules
- How-to add rewrite rules to point the uploads folder to a subdomain
- Loading custom page template via plugin
- Preventing index.php?category_name=something from redirecting
- I put my blog on a subpage, how do I get page title?
- Rewrite Rules for Multiple (more than 2) Taxonomies
- How to stop wordpress to make the default query?
- Check if a menu is empty?
- How to seamlessly redirect between different archive and singular slugs?
- Is the SEO plugin necessary?
- Can ‘numberposts’ be passed in the URL query string?
- How to add dot(“.”) in post slug
- How to prevent redirection to max 2147483647 for larger values of the page query variable?
- add_rewrite_rule not loading correct page nor getting variables
- Overwrite rewrite-slug of built in post-type ‘post’
- Preserving $_GET parameter while using custom Rewrite Rule
- How to change default page slug?
- Query Vars for the Homepage?
- Disable wordpress pagination URL rewrite for specific page
- How to use Post Custom Metadata in Post Titles and Post Permalinks