Skip to content

Allows users to create and edit custom HTML pages with a frontend interface and WordPress admin dashboard integration.

Notifications You must be signed in to change notification settings

thequick10/CustomHTMLPages

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

=== Custom HTML Pages Creator === Contributors: rupeshkmrshah Tags: html, pages, editor, frontend, custom pages, admin menu Requires at least: 5.0 Tested up to: 6.4 Requires PHP: 7.0 Stable tag: 1.1.0 License: GPL-2.0+ License URI: https://www.gnu.org/licenses/gpl-2.0.txt

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 ==

  1. Upload the plugin files to the /wp-content/plugins/custom-html-pages/ directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the 'Plugins' screen in WordPress.
  3. Use the shortcode [html_page_editor] on any page to display the frontend editor.
  4. Access the plugin's admin interface via the new "Custom HTML Pages" menu in the WordPress sidebar.
  5. Use the "All Pages" submenu to view and manage existing pages.
  6. Use the "Create/Edit Page" submenu to create or edit custom HTML pages within the admin dashboard.

== Usage ==

  1. Add the shortcode [html_page_editor] to any page or post to enable the frontend editor.
  2. Logged-in users with appropriate permissions can create and edit HTML pages from the frontend or admin dashboard.
  3. Choose placement: Full Page (creates a new page at /custom-page/slug), Header, Body, or Footer (injects HTML site-wide).
  4. For full pages, access them at yoursite.com/custom-page/your-slug.
  5. 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 ==

  1. Frontend editor interface
  2. Admin management panel with page list
  3. Admin editor form in submenu page

== License ==

This plugin is licensed under the GPL-2.0+.

About

Allows users to create and edit custom HTML pages with a frontend interface and WordPress admin dashboard integration.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published