=== CustomEasy ===
Contributors: lcwebprojects
Donate link: https://www.lcweb.it/donations
Tags: custom code, header, footer, javascript, css
Requires at least: 5.0
Tested up to: 7.1
Requires PHP: 7.0
Stable tag: 2.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Add custom CSS, JavaScript or any HTML code to your site's head or footer, globally or per post. Lightweight, with a built-in code editor.



== Description ==

CustomEasy is a tiny, lightweight plugin to insert your own code in the `<head>` or before the closing `</body>` of your website, without editing theme files.

Use it for analytics and tracking snippets, custom CSS, JavaScript and jQuery, verification tags, pixels and any other code you need on your pages.

**Features**

* Add code to the website head and footer
* Global code, applied to every page of the site
* Per-page code: a metabox is available in every public post type (posts, pages and custom post types)
* Syntax highlighting with the CodeMirror editor bundled with WordPress
* Works with both the block editor and the classic editor
* No bloat: no front-end scripts or styles of its own

**How code is inserted**

Head code is printed through the `wp_head` hook, footer code through `wp_footer`. Your theme must call both hooks, as every properly built theme does.

**Security note**

Custom code is output as-is on the public website. Only grant access to trusted users with the required capabilities.



== Installation ==

1. Upload the `customEasy` directory to the `/wp-content/plugins/` directory, or install the plugin through the Plugins screen.
2. Activate the plugin through the Plugins menu.
3. Go to Appearance -> CustomEasy to add global code.
4. To add code to a single page, use the CustomEasy metabox shown in the editor of any public post type.



== Frequently Asked Questions ==

= How is code inserted? =

Head code is inserted through `wp_head`; footer code is inserted through `wp_footer`.

= Where do I add code for the whole website? =

Go to Appearance -> CustomEasy.

= Where do I add code for a single page or post? =

Open the post in the editor and use the CustomEasy metabox. It is available for every public post type.

= My code is not showing on the site, why? =

Check that your theme calls `wp_head()` and `wp_footer()`, and that no caching or optimization plugin is serving an older version of the page.

= Is it safe? =

The code you enter is printed without any filtering, so only trusted users should be allowed to edit it.



== Changelog ==

= 2.0.0 =
 - new: complete code overhaul and optimization
 - new: Replaced bundled ACE with the WordPress CodeMirror editor.
 - new: Improved nonce validation, capability checks, output escaping in admin fields, and post-save handling.

= 1.0.2 =
 - new: Minor changes and WordPress 6.7 compatibility declaration.

= 1.0.1 =
 - fixed: slashes management in code editors.

= 1.0 =
Initial release.