Petra
AI assistant for GrootMade
Hi! I'm Petra 👋 Ask me to help you find the perfect WP plugin, theme, or template kit.
forked from Page Keys™
Pixel Touch is not affiliated with Page Keys. The name and any related trademarks are used solely for nominative descriptive purposes.
This plugin provides a stable method for developers to reference specific pages within a site's theme or custom code. It solves the common problem of page links breaking when a page's title, slug, or ID changes, ensuring that template files always point to the correct content.
Key Management: Create and manage unique, custom keys in the admin area. Each key is permanently linked to a page you select.
Stable Template Function: Use the provided get_page_by_key( $key ) function in your PHP template files. This function returns the correct page object even if the original page's title or URL is altered.
Access Control: Configure user permissions separately for viewing the key list and for editing the key assignments, using built-in filters to customize capabilities.
Admin Notices: The plugin can show an admin notice for any keys that are not currently assigned to a valid page, helping you maintain your setup. This notice can be disabled with a filter.
Customization Filters: Several filters are included, such as edit_page_keys_capability and page_keys_show_admin_notice, allowing you to modify the plugin's default behavior to fit your project's requirements.