=== ConvertToHTML Custom HTML Snippets ===
Contributors: converttohtml
Tags: html snippets, custom html, shortcode, header footer, code snippets
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Stable tag: 1.0.0-beta.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Save reusable HTML snippets and display them by shortcode, in content, or through standard WordPress header and footer hooks.

== Description ==

ConvertToHTML Custom HTML Snippets lets administrators:

* Create reusable HTML snippets.
* Enable or disable snippets without deleting them.
* Insert snippets with a shortcode.
* Automatically place snippets before or after content, in wp_head, or in wp_footer.
* Limit automatic placement to the homepage, posts, Pages, all singular content, or specific IDs.
* Optionally allow trusted JavaScript when the current administrator has WordPress's unfiltered_html capability.

The optional public “Powered by ConvertToHTML” credit is disabled by default and can be enabled from the plugin screen.

== Installation ==

1. Open Plugins > Add New > Upload Plugin.
2. Select the plugin ZIP, install it and activate it.
3. Open HTML Snippets in the WordPress administration menu.
4. Create a snippet and choose its placement and display rules.

== Frequently Asked Questions ==

= What is the shortcode? =

Each saved snippet displays its shortcode in the list. It uses this format: [converttohtml_snippet id="123"]

= Can snippets appear automatically? =

Yes. Choose before content, after content, site header or site footer and then select a display scope.

= Can I add JavaScript? =

Only trusted administrators with the unfiltered_html capability can enable JavaScript. Script elements and active event attributes are removed when that option is unavailable or disabled.

= Does the plugin force a public backlink? =

No. Public credit is optional and disabled by default. If enabled, it appears once in the footer on pages where a snippet was rendered.

== Changelog ==

= 1.0.0-beta.1 =

* Initial beta release.
* Added shortcode and automatic placement modes.
* Added page targeting and enable/disable controls.
* Added administrator-controlled JavaScript support.
* Added optional public credit setting.
