Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified .wordpress-org/screenshot-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .wordpress-org/screenshot-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "urldev/insert-codes",
"description": "The \"Insert Codes - Headers And Footers Code Snippet\" plugin allows you to easily add custom code to the header, body, and footer sections of your WordPress website.",
"description": "The \"Insert Codes - The Code Snippets Manager for WordPress\" plugin allows you to easily manage custom code snippets and add custom code to the header, body, and footer sections of your WordPress website.",
"homepage": "https://urldev.com/plugins/insert-codes/",
"type": "wordpress-plugin",
"license": "GPL-3.0-or-later",
"license": "GPL-v2-or-later",
"prefer-stable": true,
"minimum-stability": "dev",
"repositories": [
Expand Down
31 changes: 31 additions & 0 deletions includes/Admin/views/snippets.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,37 @@
</ul>
</div>
</div>
<div class="aside__item">
<div class="aside__item__header">
<h4><?php esc_html_e( 'Important Notes', 'insert-codes' ); ?></h4>
</div>
<div class="aside__item__body">
<ul>
<li>
<p>
<?php esc_html_e( 'Please make sure to test the code snippets before saving if you are using the PHP code snippets feature. Incorrect code can break your website. We recommend to take a backup of your website before saving the code snippets.', 'insert-codes' ); ?>
</p>
</li>
<li>
<p>
<?php esc_html_e( '* If you need urgent support, please visit the support forum.', 'insert-codes' ); ?>
<a href="https://wordpress.org/support/plugin/insert-codes/" target="_blank"><?php esc_html_e( 'Get Support', 'insert-codes' ); ?></a>
</p>
</li>
<li>
<p>
<?php esc_html_e( '* If you need help via our site, please visit the support forum. We provide urgent support via our site if your site goes down due to the plugin.', 'insert-codes' ); ?>
<a href="https://wpfresher.com/contact/" target="_blank"><?php esc_html_e( 'Get Support', 'insert-codes' ); ?></a>
</p>
</li>
<li>
<p>
<?php esc_html_e( 'Please remember, the plugin provides the code snippets feature and it is harder to debug the code snippets.', 'insert-codes' ); ?>
</p>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions insert-codes.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php
/**
* Plugin Name: Insert Codes - Headers And Footers Code Snippet
* Plugin Name: Insert Codes - The Code Snippets Manager for WordPress
* Plugin URI: https://urldev.com/plugins/insert-codes/
* Description: The "Insert Codes - Headers And Footers Code Snippet" plugin allows you to easily add custom code to the header, body, and footer sections of your WordPress website.
* Description: The "Insert Codes - The Code Snippets Manager for WordPress" plugin allows you to easily manage custom code snippets and add custom code to the header, body, and footer sections of your WordPress website.
* Version: 1.2.0
* Requires at least: 5.0
* Requires PHP: 7.4
Expand Down
43 changes: 36 additions & 7 deletions languages/insert-codes.pot
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
# This file is distributed under the GPL v2 or later.
msgid ""
msgstr ""
"Project-Id-Version: Insert Codes - Headers And Footers Code Snippet 1.2.0\n"
"Project-Id-Version: Insert Codes - The Code Snippets Manager for WordPress "
"1.2.0\n"
"Report-Msgid-Bugs-To: https://urldev.com/support\n"
"POT-Creation-Date: 2024-09-06 18:15:43+00:00\n"
"POT-Creation-Date: 2024-09-07 15:45:49+00:00\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
Expand Down Expand Up @@ -90,7 +91,8 @@ msgid "If you need help, please visit the support forum."
msgstr ""

#: includes/Admin/views/codes.php:77 includes/Admin/views/settings.php:96
#: includes/Admin/views/snippets.php:83
#: includes/Admin/views/snippets.php:83 includes/Admin/views/snippets.php:109
#: includes/Admin/views/snippets.php:115
msgid "Get Support"
msgstr ""

Expand Down Expand Up @@ -217,6 +219,33 @@ msgstr ""
msgid "Select where the code snippet should execute."
msgstr ""

#: includes/Admin/views/snippets.php:97
msgid "Important Notes"
msgstr ""

#: includes/Admin/views/snippets.php:103
msgid ""
"Please make sure to test the code snippets before saving if you are using "
"the PHP code snippets feature. Incorrect code can break your website. We "
"recommend to take a backup of your website before saving the code snippets."
msgstr ""

#: includes/Admin/views/snippets.php:108
msgid "* If you need urgent support, please visit the support forum."
msgstr ""

#: includes/Admin/views/snippets.php:114
msgid ""
"* If you need help via our site, please visit the support forum. We provide "
"urgent support via our site if your site goes down due to the plugin."
msgstr ""

#: includes/Admin/views/snippets.php:120
msgid ""
"Please remember, the plugin provides the code snippets feature and it is "
"harder to debug the code snippets."
msgstr ""

#: includes/Controllers/Actions.php:35 includes/Controllers/Actions.php:63
#: includes/Controllers/Actions.php:99
msgid "You do not have sufficient permissions to perform this action."
Expand All @@ -241,7 +270,7 @@ msgid ""
msgstr ""

#. Plugin Name of the plugin/theme
msgid "Insert Codes - Headers And Footers Code Snippet"
msgid "Insert Codes - The Code Snippets Manager for WordPress"
msgstr ""

#. Plugin URI of the plugin/theme
Expand All @@ -250,9 +279,9 @@ msgstr ""

#. Description of the plugin/theme
msgid ""
"The \"Insert Codes - Headers And Footers Code Snippet\" plugin allows you "
"to easily add custom code to the header, body, and footer sections of your "
"WordPress website."
"The \"Insert Codes - The Code Snippets Manager for WordPress\" plugin "
"allows you to easily manage custom code snippets and add custom code to the "
"header, body, and footer sections of your WordPress website."
msgstr ""

#. Author of the plugin/theme
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "insert-codes",
"title": "Insert Codes - Headers And Footers Code Snippet",
"title": "Insert Codes - The Code Snippets Manager for WordPress",
"version": "1.2.0",
"description": "The \"Insert Codes - Headers And Footers Code Snippet\" plugin allows you to easily add custom code to the header, body, and footer sections of your WordPress website.",
"description": "The \"Insert Codes - The Code Snippets Manager for WordPress\" plugin allows you to easily manage custom code snippets and add custom code to the header, body, and footer sections of your WordPress website.",
"homepage": "https://urldev.com/plugins/insert-codes/",
"license": "GPL-2.0-or-later",
"license": "GPL-v2.0-or-later",
"author": "UrlDev",
"prettier": "@wordpress/prettier-config",
"scripts": {
Expand Down
54 changes: 38 additions & 16 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -1,33 +1,46 @@
=== Insert Codes - Headers And Footers Code Snippet ===
=== Insert Codes – Insert Headers and Footers + Code Snippets Manager for WordPress ===
Contributors: urldev
Tags: code, code snippet, insert codes, header, footer
Requires at least: 5.0
Tested up to: 6.6
Stable tag: 1.1.0
Stable tag: 1.2.0
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Easily insert codes snippet to the header, body, and footer sections of your WordPress website.
Easily manage code snippets and insert codes to the header, body, and footer sections of your WordPress website.

== Description ==
The "Insert Codes - Headers And Footers Code Snippet" plugin allows you to easily add custom code to the header, body, and footer sections of your WordPress website. Whether you need to add tracking scripts, custom CSS, or other code snippets, this plugin provides a simple and user-friendly interface to manage your scripts without editing your theme files. Enhance your site's functionality, improve performance, and maintain security by inserting custom code snippets with ease.
The "Insert Codes – Insert Headers and Footers + Code Snippets Manager for WordPress" plugin allows you to easily manage custom code snippets and add custom code to the header, body, and footer sections of your WordPress website. Whether you need to add tracking scripts, custom CSS, or other code snippets, this plugin provides a simple and user-friendly interface to manage your scripts without editing your theme files. Enhance your site's functionality, improve performance, and maintain security by inserting custom code snippets with ease. Ultimate code snippets manager for WordPress!

=== ✨ Features of Insert Codes - Headers And Footers Code Snippet ===
=== ✨ Features of Insert Codes - Insert Headers And Footers + Code Snippets Manager for WordPress: ===
* Code Snippets Manager: Easily manage and insert custom code snippets on your site.
* Insert Header Scripts: Add custom code to the <head> section of your website.
* Insert Body Scripts: Add custom code immediately after the opening <body> tag.
* Insert Footer Scripts: Add custom code just before the closing </body> tag.
* User-Friendly Interface: Easy-to-use settings page for adding and managing your code snippets.
* Safe and Secure: Ensures that your snippets are safely added without breaking your site.
* Enhanced Site Functionality: Perfect for adding tracking codes, analytics, and custom styles.
* Enhanced Site Functionality: Perfect for adding tracking codes, analytics, and custom styles. As well as managing custom code snippets without altering theme files.
* Improved Site Performance: Efficiently loads scripts without slowing down your site.
* Developer Friendly: Offers hooks and filters for advanced customizations.
* Regular Updates: Consistent updates to ensure compatibility with the latest WordPress versions.

== Why Choose Insert Codes - Headers And Footers Code Snippet? ==
* Ease of Use: Simple and intuitive interface. No coding skills required to insert scripts inside the header, body and footer sections.
* Flexible Script Management: Supports adding code snippets to the header, body, and footer sections. Easily manage multiple scripts in each section.
* Enhanced Site Functionality: Perfect for adding tracking codes, analytics, and custom styles. Enhance site functionality without altering theme files.
* Dedicated Support: Access to comprehensive support and documentation.
* Compatibility: Compatible with a wide range of themes and plugins.
* Open Source: Fully open-source with GPLv2 or later license.

== Important Note: ==
This plugin is designed to help you manage custom code snippets on your WordPress site. It is important to ensure that the code snippets you add are from trusted sources and do not compromise the security or performance of your site. Always test your code snippets before adding them to your site. Always try to keep your code snippets to a minimum to avoid any performance issues and ensure that your site remains secure as well as optimized. Insert every function with a unique name and prefix to avoid conflicts with other plugins or themes. If you have any questions or need assistance, please contact our support team. We are here to help you with any issues or concerns you may have.
Support Link: [Insert Codes - Insert Headers And Footers + Code Snippets Manager for WordPress Plugin Support](https://wordpress.org/support/plugin/insert-codes/)
Direct Contact (E-Mail): [Contact Us](https://wpfresher.com/contact/)

We are committed to providing you with a reliable and user-friendly solution for managing custom code snippets on your WordPress site. Our team is dedicated to ensuring that you have a positive experience with our plugin and that your site remains secure and optimized. Thank you for choosing Insert Codes - Insert Headers And Footers Code Snippet! Your feedback and suggestions are always welcome. And we are here to help you with any questions or issues you may have. We appreciate your support and look forward to helping you enhance your site's functionality and performance with our plugin. Get started today and take control of your site's code snippets with Insert Codes - Insert Headers And Footers Code Snippet!

== Why Choose Insert Codes - Insert Headers And Footers + Code Snippets Manager? ==
Insert Codes - Insert Headers And Footers + Code Snippets Manager is a powerful and user-friendly plugin that allows you to easily manage custom code snippets on your WordPress site. Here are some reasons why you should choose Insert Codes - Insert Headers And Footers + Code Snippets Manager for your site:
* Code Snippets Manager: Easily manage and insert custom code snippets on your site. Perfect for adding custom codes to the functions.php file without altering theme files. As well as managing header, body, and footer scripts with ease.
* Ease of Use: Simple and intuitive interface. No coding skills required to insert scripts inside the header, body and footer sections and manage custom code snippets.
* Flexible Script Management: Supports adding code snippets to the header, body, and footer sections of your site. Easily manage and insert custom code snippets without editing theme files.
* Enhanced Site Functionality: Perfect for adding tracking codes, analytics, and custom styles. As well as managing custom code snippets without altering theme files.
* Improved Site Performance: Efficiently loads scripts without slowing down your site. Ensures minimal impact on page load times.
* Safe and Secure: Safely integrates scripts without compromising site security. Maintains the integrity of your site's code.
* Developer Friendly: Offers hooks and filters for advanced customizations. Easily extend functionality as needed.
Expand All @@ -37,18 +50,21 @@ The "Insert Codes - Headers And Footers Code Snippet" plugin allows you to easil
* Open Source: Fully open-source with GPLv2 or later license. Freedom to modify and distribute under the license terms.
* Trusted Solution: Developed by a reputable team with years of experience in WordPress plugin development. Trusted by thousands of users worldwide.

Choosing "Insert Codes - Headers And Footers Code Snippet" ensures a reliable, user-friendly solution for managing custom scripts on your WordPress site, enhancing functionality, and maintaining performance and security.
Choosing "Insert Codes - Insert Headers And Footers + Code Snippets Manager" ensures a reliable, user-friendly solution for managing custom scripts on your WordPress site, enhancing functionality, and maintaining performance and security.

== Get Started Today: ==
Install Insert Codes - Headers And Footers Code Snippet from the WordPress plugin repository and take control of your website's header, body, and footer scripts. Easily add custom code snippets to enhance your site's functionality and performance. Get started today!
Install Insert Codes - Insert Headers And Footers + Code Snippets Manager from the WordPress plugin repository and take control of your website's header, body, and footer scripts. Easily add custom code snippets to enhance your site's functionality and performance. Get started today!

== Installation ==
1. Upload the plugin files to the `/wp-content/plugins/insert-codes` directory, or install the plugin through the WordPress plugins screen directly.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Navigate to WordPress Admin Dashboard > Insert Codes - Headers And Footers Code Snippet > Codes & Settings to manage headers, body and footers script.
3. Navigate to WordPress Admin Dashboard > Insert Codes - Insert Headers And Footers Code Snippet > Codes & Settings to manage headers, body and footers script.
4. Configure the settings and start using the plugin feature!

== Frequently Asked Questions ==
= Can I add a custom code snippet to my WordPress site using this plugin? =
A: Yes, you can add custom code snippets to your WordPress site using this plugin without editing theme files. You can add code snippets to the admin, front-end, and other sections of your site.

= How do I add a header script? =
A: After activating the plugin, go to 'Settings' > 'Insert Codes', and you will find a field for 'Header Scripts'. Paste your code snippet there and save changes.

Expand Down Expand Up @@ -99,15 +115,21 @@ A: Currently, the plugin does not support adding scripts to specific taxonomies.

= Minimum requirements =
* WordPress 5.0 or greater
* PHP version 5.6 or greater
* PHP version 7.4 or greater
* MySQL version 5.6 or greater
* MariaDB version 10 or later

== Screenshots ==
1. Insert Codes: Easily manage your header, body, and footer scripts from one place.
2. Settings Page: Easy and user-friendly admin panel to configure the header, body, and footer scripts options.
2. Code Snippets: Add and manage custom code snippets for your WordPress site. It supports PHP, HTML, CSS, and JavaScript code.
3. Settings Page: Easy and user-friendly admin panel to configure the header, body, and footer scripts options.

== Changelog ==
= 1.2.0 (07 September 2024) =
* New: Added support for custom code snippets.
* Enhancement: Improved code snippet management.
* Fix: Few known issues.

= 1.1.0 (19 August 2024) =
* Enhancement: Enhanced sanitization and validation of input fields.
* Enhancement: Improved user interface and settings page.
Expand Down