Custom Pages For Meta Refresh
Allows users to create and edit custom HTML pages with a frontend interface and WordPress admin dashboard integration.
by Rupesh Shah · github.com/thequick10/customhtmlpages · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/thequick10/customhtmlpages/archive/refs/heads/main.zipCustom HTML Pages Creator
Allows users to create and edit custom HTML pages with a frontend interface and WordPress admin dashboard integration.
Description
This plugin provides a user-friendly interface for creating and managing custom HTML pages directly from the frontend or the WordPress admin dashboard. Users can create full HTML pages that are served at custom URLs.
Features:
- Frontend editor for creating HTML pages
- Admin dashboard integration with a dedicated top-level menu
- Separate admin submenu pages for managing pages and creating/editing pages
- Support for full pages and HTML injections
- User permissions management
- AJAX-powered interface
- Basic HTML sanitization
Installation
- Upload the plugin files to the
/wp-content/plugins/custom-html-pages/directory, or install the plugin through the WordPress plugins screen directly. - Activate the plugin through the 'Plugins' screen in WordPress.
- Use the shortcode
[html_page_editor]on any page to display the frontend editor. - Access the plugin's admin interface via the new "Custom HTML Pages" menu in the WordPress sidebar.
- Use the "All Pages" submenu to view and manage existing pages.
- Use the "Create/Edit Page" submenu to create or edit custom HTML pages within the admin dashboard.
Usage
- Add the shortcode
[html_page_editor]to any page or post to enable the frontend editor. - Logged-in users with appropriate permissions can create and edit HTML pages from the frontend or admin dashboard.
- Choose placement: Full Page (creates a new page at /custom-page/slug), Header, Body, or Footer (injects HTML site-wide).
- For full pages, access them at yoursite.com/custom-page/your-slug.
- Manage pages from the admin panel under the "Custom HTML Pages" menu.
Frequently Asked Questions
Who can use this plugin?
Users must be logged in and have the 'create_html_pages' capability. By default, this is granted to subscribers and administrators.
Can I inject HTML into specific pages only?
Currently, header, body, and footer injections are site-wide. Full pages are served at custom URLs.
Is the HTML sanitized?
Yes, basic HTML sanitization is applied using WordPress's wp_kses function. Meta refresh tags are removed from injections to prevent unwanted redirects.
Changelog
1.1.0
- Added WordPress admin dashboard integration with a dedicated top-level menu
- Added separate submenu pages for "All Pages" and "Create/Edit Page"
- Enqueued editor scripts and styles in admin for the editor submenu page
- Maintained existing frontend editor functionality
- Improved user experience by providing editor access in both frontend and admin
1.0.0
- Initial release
- Frontend editor
- Full page and injection support
- Admin management
Upgrade Notice
1.1.0
Added admin dashboard integration with separate menu and editor page.
1.0.0
Initial release.
Screenshots
- Frontend editor interface
- Admin management panel with page list
- Admin editor form in submenu page
License
This plugin is licensed under the GPL-2.0+.