PluginProbe
WP Coder – Insert & Manage Code Snippets / 4.2
WP Coder – Insert & Manage Code Snippets v4.2
4.5.1 1.1 2.3.1 2.3.2 2.4.1 2.5.1 2.5.2 2.5.3 2.5.4 2.5.5 2.5.6 3.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.1 3.1.1 3.2 3.2.1 3.3 3.4 3.5 3.5.1 All 39 releases
← All changes | README.txt +288 -95 3.04.2 View file →
@@ -1,171 +1,364 @@
1 -=== WP Coder - Powerful HTML, CSS & JS Injection ===
2 -Contributors: Wpcalc, lobov
3 -Donate link: https://wow-estore.com/item/wp-coder-pro/
4 -Tags: html, css, js, injection, coding, customization, development
1 +=== WP Coder – Insert Custom PHP, HTML, CSS & JS in WordPress ===
2 +Contributors: wpcoderdev, Wpcalc, lobov
3 +Donate link: https://wpcoder.pro/
4 +Tags: code snippets, custom css, custom js, wp code, custom php
5 5 Requires at least: 3.2
6 -Tested up to: 6.3
6 +Tested up to: 6.8
7 7 Requires PHP: 7.4
8 -Stable tag: 3.0
8 +Stable tag: 4.2
9 9 License: GPLv2 or later
10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html
11 11
12 -WP Coder: A profound WordPress plugin for directly incorporating custom HTML, CSS, and JavaScript codes into your WordPress pages.
12 +WP Coder: Easily inject custom HTML, CSS, JavaScript, and PHP snippets into your WordPress site—no coding in theme files needed!
13 13
14 14 == Description ==
15 -WP Coder can embed HTML, JS, and CSS codes directly into your WordPress pages. This plugin allows you to easily manage style issues, add web forms, or introduce interactive features. For more detailed information on each feature, please consult our [official documentation](https://wow-estore.com/guides/wp-coder/).
16 15
16 +Tired of editing theme files to add custom scripts or styles? **WP Coder** lets you effortlessly insert custom HTML, CSS, JavaScript, and PHP snippets right from your dashboard, giving you complete control and flexibility.
17 17
18 -This plugin is an excellent tool for integrating a variety of scripts or styles, which can enhance your website's aesthetics, interaction, and overall appeal.
18 +[Documentation](https://wpcoder.pro/documentation/getting-started/install-and-activate/) | [Upgrade to Pro](https://wpcoder.pro/pricing/)
19 19
20 -WP Coder gives you the freedom to incorporate diverse elements, constructed using scripts and styles, into virtually any part of your website.
20 +**WP Coder** is a robust and user-friendly WordPress plugin that allows effortless insertion of custom HTML, CSS, JavaScript, and PHP code directly into your pages, posts, or widgets using powerful shortcodes. No more editing theme files—gain full control over your website’s customization instantly.
21 21
22 -For instance, introducing a pop-up window script or a notifications script to a webpage is effortless, eliminating the need for multiple plugins, thereby avoiding the potential for site performance degradation.
22 +### 🚀 Why WP Coder?
23 +- **Advanced Code Editor:** CodeMirror-powered editor with syntax highlighting and intuitive navigation.
24 +- **Shortcode Integration:** Use `[wp_code id="X"]` to embed snippets anywhere easily.
25 +- **Live HTML & CSS Preview:** Real-time preview without the need to save or reload.
26 +- **Code Optimization:** Minify and inline your CSS/JS to boost website speed.
23 27
24 -### Features ###
28 +### 🎯 Ideal for:
29 +- **Developers:** Rapidly test scripts or debug live sites.
30 +- **Marketers:** Easily integrate analytics, pixels, and ad scripts.
31 +- **Bloggers & Designers:** Customize styles, enhance layouts, and improve user engagement.
25 32
26 -1. **Direct Injection of Codes** - Embed HTML, JS, and CSS codes directly to your pages or the whole site.
27 -2. **Test Mode** - Test different codes without affecting your live site.
28 -3. **Import/Export Functions** - Transfer your code snippets effortlessly across different websites.
29 -4. **Multifunctional Code Editor** - Enjoy color syntax highlighting, line numbering, and built-in error checking.
30 -5. **Advanced CSS and JS Options** - Have your CSS and JavaScript inline or minified to optimize page loading times.
31 -6. **Integration of External Libraries** - With WP Coder, you can tap into the vast pool of third-party libraries, leveraging existing scripts or styles that can significantly optimize your site development. This feature is perfect for not having to reinvent the wheel, and instead, you can build upon the robust releases of global developers to enhance your site's functionality and appeal.
32 -7. **Easily Embed Shortcodes into HTML Code** - Shortcodes provide a convenient way to add complex features to your website without manually writing them into the HTML. With WP Coder, these shortcodes can be easily inserted into your HTML, improving site development speed and simplicity. Whether you're looking to embed a contact form, add a gallery, or even include custom-designed elements, all these can be done through just a few lines of shortcode, significantly simplifying your website management.
33 +### ⚙️ Features:
34 +- **Embed HTML, CSS, JS, and PHP:** Easily insert custom code through powerful shortcodes.
35 +- **Advanced Tabbed Code Editor:** Easily toggle visibility of HTML, CSS, JS, and PHP tabs for focused editing or cleaner visualization.
36 +- **Syntax Highlighting:** Enhanced code readability with CodeMirror integration.
37 +- **Live Preview:** Instantly view HTML and CSS output inside the editor.
38 +- **Minify & Optimize:** Improve loading performance by minifying CSS and JavaScript.
39 +- **JS Optimization:** Control script attributes (async, defer, disable jQuery).
40 +- **Smart PHP Handling:** Execute PHP snippets conditionally—run where inserted, run only in the admin area, run only on the front-end, or run everywhere.
41 +- **External Scripts & Styles:** Include external libraries like Google Fonts or CDN resources.
42 +- **Test Mode:** Safely preview snippets without affecting your live site.
43 +- **Import/Export:** Easily transfer snippets and settings between sites.
44 +- **Visual Snippet Navigation:** Inline NAV comments for easy code section navigation.
45 +- **Safe and Lightweight:** Built for speed and optimized for security, with zero bloat.
33 46
47 +### 💡 Included Snippets:
34 48
35 -WP Coder is an invaluable tool for all WordPress developers, website owners, and coding enthusiasts. Elevate your WordPress development experience with WP Coder.
49 +#### Editor & Content
50 +- Disable Gutenberg Editor
51 +- Remove Gutenberg Block CSS
52 +- Disable Widget Blocks
53 +- Enable Shortcode Execution in Widgets
54 +- Enable Excerpt for Pages
55 +- Open External Links in New Tabs
56 +- Change “Read More” Text
36 57
37 -*Please note:* While WP Coder allows for advanced customization and control, improper use may affect your site. Always backup your site before making significant changes.
58 +#### Admin Interface Tweaks
59 +- Disable Screen Options Tab
60 +- Disable Welcome Panel
61 +- Duplicate Posts
62 +- Disable Admin Bar
38 63
39 -### Video ###
64 +#### Login & User Access
65 +- Disable Login Page Language Switcher
66 +- Disable Login by Email
67 +- Disable Admin Password Reset Emails
68 +- Custom Login Logo
69 +- Custom Login Redirect URLs
40 70
41 -https://youtu.be/VlJwkMwf4ZQ
71 +#### Media & Embeds
72 +- Enable SVG Upload
73 +- Force Lowercase Filenames
74 +- Default ALT Text for Avatars
75 +- Disable Lazy Load
76 +- Disable Embeds
77 +- Adjust oEmbed Max Dimensions
42 78
43 -### Other Useful Plugins ###
79 +#### Core Functionality
80 +- Disable XML-RPC
81 +- Disable REST API
82 +- Disable Automatic Updates
83 +- Disable Emojis
84 +- Disable Shortlinks
85 +- Limit Post Revisions
44 86
45 -If you find WP Coder useful, you might also want to check out our other plugins:
87 +#### Comments & Feedback
88 +- Disable Comments Globally
89 +- Disable Comment URL Field
90 +- Disable Self Pingbacks
91 +- Disable Trackbacks & Pingbacks
92 +- Disable HTML in Comments
93 +- Limit Comment Length
46 94
47 -* [Popup Box – new WordPress popup plugin](https://wordpress.org/plugins/popup-box/)
48 -* [Counter Box – powerful creator of counters, timers and countdowns](https://wordpress.org/plugins/counter-box/)
49 -* [Button Generator – easily Button Builder](https://wordpress.org/plugins/button-generation/)
50 -* [Herd Effects – fake notifications and social proof plugin](https://wordpress.org/plugins/mwp-herd-effect/)
51 -* [Floating Button](https://wordpress.org/plugins/floating-button/)
52 -* [Side Menu Lite – add sticky fixed buttons](https://wordpress.org/plugins/side-menu-lite/)
53 -* [Sticky Buttons – floating buttons builder](https://wordpress.org/plugins/sticky-buttons/)
54 -* [Bubble Menu – circle floating menu](https://wordpress.org/plugins/bubble-menu/)
55 -* [Float menu – awesome floating side menu](https://wordpress.org/plugins/float-menu/)
56 -* [Modal Window – create modal window](https://wordpress.org/plugins/modal-window/)
57 -* [Wow Skype Buttons](https://wordpress.org/plugins/mwp-skype/)
95 +#### Cleanup & Optimization
96 +- Remove WP Version
97 +- Disable Attachment Pages
98 +- Disable RSS Feeds
99 +- Disable Built-in Search
100 +- Disable wlwmanifest Link
101 +- Disable Automatic Trash Emptying
102 +- Redirect 404 to Homepage
58 103
104 +### 💡 Included Tools:
105 +- Google Analytics, Facebook Pixel, and Pinterest Pixel integration.
106 +- Google AdSense integration with the option to disable ads for selected user roles.
107 +- Debug Log management (enable/disable and clear log).
108 +
109 +### 🚨 PRO Features:
110 +- **Custom Templates:** Create unique page and post templates. Also available for categories, archives, and custom post types.
111 +- **Conditional Display Rules:** Show snippets based on specific criteria.
112 +- **Advanced Shortcode Attributes:** Create and use custom shortcode attributes to dynamically adjust snippet content.
113 +- **Scheduled Visibility:** Set date/time rules for snippet display.
114 +- **Visibility Control:** Mobile/Desktop-specific visibility settings.
115 +- **Browser & Language Targeting:** Show or hide snippets based on browser or language.
116 +- **Maintenance Mode:** Display custom maintenance pages.
117 +- **Remove Enqueued Scripts & Styles:** Optimize site performance by managing scripts/styles.
118 +- **QuickCode:** Dynamically insert data like object IDs or site options.
119 +- **Register Menu:** Automatically add menu support in themes that don't have a registered navigation menu.
120 +
121 +WP Coder simplifies your WordPress development workflow and makes customization safe, fast, and flexible!
122 +
123 +Get started today and simplify your WordPress development workflow with **WP Coder**!
124 +
125 +### 📺 Plugin Demo:
126 +https://youtu.be/YF4X7sU0iFY?si=327VZduhqu_mh5-N
127 +
128 +### 🌟 Other Popular Plugins:
129 +- [Popup Box](https://wordpress.org/plugins/popup-box/)
130 +- [Counter Box](https://wordpress.org/plugins/counter-box/)
131 +- [Button Generator](https://wordpress.org/plugins/button-generation/)
132 +- [Herd Effects](https://wordpress.org/plugins/mwp-herd-effect/)
133 +- [Floating Button](https://wordpress.org/plugins/floating-button/)
134 +- [Side Menu Lite](https://wordpress.org/plugins/side-menu-lite/)
135 +- [Sticky Buttons](https://wordpress.org/plugins/sticky-buttons/)
136 +- [Bubble Menu](https://wordpress.org/plugins/bubble-menu/)
137 +- [Float Menu](https://wordpress.org/plugins/float-menu/)
138 +- [Modal Window](https://wordpress.org/plugins/modal-window/)
139 +
140 +Enhance your WordPress site today with **WP Coder**!
141 +
142 += Support =
143 +Need help? Ask questions and get quick answers in our [support center](https://wordpress.org/support/plugin/wp-coder).
144 +
59 145 == Installation ==
60 146
61 -= Automatic installation =
147 +### 📌 Option 1: Install via WordPress Admin
148 +1. Go to **`Plugins` → `Add New`** in your WordPress admin panel.
149 +2. Search for **"WP Coder"** and click **Install Now**.
150 +3. Click **Activate** after installation.
62 151
63 -1. Log into your WordPress admin
64 -2. Click __Plugins__
65 -3. Click __Add New__
66 -4. Search for __WP Coder__
67 -5. Click __Install Now__ under "WP Coder"
68 -6. Activate the plugin
69 -7. Click link "Settings" or go to the page "Wow Plugins" ⇒ "WP Coder"
152 +### 📌 Option 2: Install Manually
153 +1. **Download** the WP Coder plugin ZIP file from [WordPress.org](https://wordpress.org/plugins/wp-coder/).
154 +2. In WordPress admin, go to **`Plugins` → `Add New`** → **Upload Plugin**.
155 +3. Click **Choose File**, select the downloaded ZIP file, then click **Install Now**.
156 +4. After installation, click **Activate**.
70 157
71 -= Manual installation =
158 +### 📌 Option 3: Install via FTP
159 +1. **Download and unzip** the WP Coder plugin ZIP file.
160 +2. Upload the extracted **`wp-coder`** folder to `/wp-content/plugins/` via FTP.
161 +3. Go to **`Plugins`** in WordPress admin and click **Activate**.
72 162
73 -1. Download the plugin
74 -2. Extract the contents of the zip file
75 -3. Upload the contents of the zip file to the `wp-content/plugins/` folder of your WordPress installation
76 -4. Activate the WP Coder plugin from 'Plugins' page.
163 +### 🚀 Getting Started
164 +1. Navigate to the **`Wow Plugins → WP Coder`** section in your WordPress admin panel.
165 +2. Click **`Add New Snippet`** to create your first code snippet.
166 +3. Configure your snippet settings (HTML, CSS, JavaScript, PHP).
167 +4. Click **Save** to apply your changes.
77 168
78 -For more detailed instructions on setting up WP Coder, please refer to our [step-by-step guide](https://wow-estore.com/guides/wp-coder/).
79 169
170 +== Frequently Asked Questions ==
80 171
81 -== Frequently Asked Questions ==
172 += Does WP Coder support Network activation? =
82 173
83 -= How do I activate WP Coder in Network mode? =
174 +Currently, WP Coder doesn't support network-wide activation. If you're using WordPress Multisite, activate the plugin individually on each site within your network.
84 175
85 -If you're using WordPress in Network mode, WP Coder will need to be activated for each individual site within the network. Unfortunately, the plugin does not support network-wide activation at this time.
176 += Where can I find detailed documentation? =
86 177
87 -= Where can I find more detailed documentation? =
88 -You can find a complete guide and detailed usage instructions in our [official documentation](https://wow-estore.com/guides/wp-coder/).
178 +Visit our comprehensive [official documentation](https://wpcoder.pro/documentation/getting-started/install-and-activate/) for detailed guides and step-by-step instructions.
89 179
90 -= Can I insert any shortcode into the HTML block content? =
180 += How can I use shortcode content in HTML code? =
91 181
92 -Absolutely, you can embed any shortcode into the HTML block content using WP Coder. This flexibility not only allows you to include shortcodes from other plugins, but you can also use shortcodes specifically from WP Coder itself, adding a layer of convenience to your customization process.
182 +If you include content within the shortcode like `[wp_code id="1"]Some Text[/wp_code]`, you can insert this content into your HTML snippet using the variable `{{$shortcode_content}}`.
93 183
94 -= How can I use the tag feature in the 'Publish' block? =
184 += Can I use shortcodes from other plugins within WP Coder snippets? =
95 185
96 -Tags in WP Coder are useful for categorizing and grouping your code snippets. When you create an item (a code snippet), you have the option to assign a tag to it in the 'Publish' block. This tag can help you organize your snippets and make them easier to filter in the list of items. To assign a tag, simply enter the name of your tag in the 'Tag' field when creating or editing an item.
186 +Absolutely! WP Coder allows you to embed shortcodes from any plugin within your HTML snippet content. You can also use WP Coder’s own shortcodes, offering enhanced flexibility for customization.
97 187
188 += What is the purpose of tags in the 'Publish' block? =
189 +
190 +Tags help categorize and organize your snippets. When creating or editing a snippet, assign tags in the 'Publish' block to easily filter and manage your snippets later.
191 +
98 192 = How do I use the link feature in the 'Publish' block? =
99 193
100 -The link feature in the 'Publish' block allows you to attach a link to the page where your shortcode is inserted. This way, you can always track where you've placed a particular shortcode. You can set this by entering the URL of the page in the 'Link' field when creating or editing your code snippet in WP Coder.
194 +The link feature helps you track where your shortcode is placed. Simply enter the URL of the page where your shortcode is inserted in the 'Link' field when creating or editing your snippet.
101 195
102 196
197 +
103 198 == Screenshots ==
104 -1. HTML block
105 -2. CSS Block
106 -3. JavaScript Block
107 -4. Include custom CSS and JS files
108 -5. Publish Information
199 +1. HTML Block – Easily insert custom HTML snippets.
200 +2. CSS Block – Manage and insert custom CSS snippets.
201 +3. JavaScript Block – Customize your site's functionality with JS snippets.
202 +4. PHP Block – Dynamically embed PHP snippets.
203 +5. Include External CSS & JS – Quickly link external CSS and JavaScript files.
204 +6. Publish Settings – Configure snippet visibility and publishing options.
205 +7. Snippets Manager – manage all snippets efficiently.
206 +8. Tools – Access helpful tools like Tracking Code Manager and Google AdSense integration.
207 +9. Global PHP – Insert PHP snippets globally across your website.
208 +10. Export/Import – Easily export and import your snippet settings.
109 209
110 210 == Changelog ==
111 211
212 +### Helpful Links ###
213 +- [Website](https://wpcoder.pro)
214 +- [Documentation](https://wpcoder.pro/category/documentation/)
215 +- [Upgrade to Pro!](https://wpcoder.pro/pricing/)
216 +
217 += 4.2 =
218 +* Added: Debug Log page in WP Coder admin menu with options to enable/disable logging and clear log.
219 +* Added: Admin bar indicator with link to Debug Log when entries are present.
220 +
221 += 4.1 =
222 +* Added: Export snippets by tags
223 +* Added: Export selected snippets
224 +* Added: Option to use CSS files only in Live Preview without loading them on the site
225 +
226 += 4.0.3 =
227 +* Added: duplicate button for each item
228 +* Improved: Live Preview block behavior and rendering
229 +
230 += 4.0.2 =
231 +* Improved: Reorganized method order in DBManager class for better readability and maintenance
232 +* Improved: Minor SQL formatting for consistency
233 +* Cleaned: Minor code style improvements according to WordPress Coding Standards (WPCS)
234 +
235 += 4.0.1 =
236 +* Improved: Added `matchBrackets: true` option for the JavaScript editor to highlight matching brackets when editing code.
237 +
238 += 4.0 =
239 +* Improved: Refreshed interface for better user experience.
240 +* Added: "Open External Links in New Tab" snippet.
241 +* Added: "Redirect 404 to Homepage" snippet.
242 +* Added: "Limit Comment Length" snippet.
243 +* Added: "Disable HTML in Comments" snippet.
244 +* Added: "Disable Trackbacks & Pingbacks" snippet.
245 +* Added: Live preview feature for HTML & CSS snippets.
246 +
247 += 3.6.1 =
248 +* Fixed: Security issue in escaping within list files.
249 +
250 += 3.6 =
251 +* Added: Custom locations for PHP snippet inclusion.
252 +* Added: Option to hide tabs in settings.
253 +* Fixed: Admin style compatibility for Safari browser.
254 +
255 += 3.5.2 =
256 +* Fixed: Minor admin style improvements.
257 +* Fixed: Various minor bugs.
258 +
259 += 3.5.1 =
260 +* Changed: Adjusted user permissions to use the plugin.
261 +
262 += 3.5 =
263 +* Added: "Tracking Code Manager" tool for easy integration of analytics pixels.
264 +* Added: "Google AdSense" integration tool.
265 +* Added: User roles support for "Disable WP Admin Bar" snippet.
266 +* Improved: Updated back-link functionality.
267 +
268 += 3.4 =
269 +* Added: Pre-set popular snippets page.
270 +
271 += 3.3 =
272 +* Added: Button to insert images in HTML snippets.
273 +* Added: HTML Minification tool.
274 +* Improved: Enhanced CSS Minification tool.
275 +
276 += 3.2.1 =
277 +* Fixed: Minor database issue.
278 +
279 += 3.2 =
280 +* Added: "Add New" and "All Codes" buttons in editor.
281 +* Fixed: Improved admin styling.
282 +
283 += 3.1.1 =
284 +* Fixed: Database save issue.
285 +
286 += 3.1 =
287 +* Added: Global PHP snippet feature.
288 +* Added: Content handling inside shortcodes.
289 +* Added: Copy shortcode button.
290 +* Improved: More flexible file inclusion management.
291 +* Changed: Shortcode updated to `[wp_code]`.
292 +
293 += 3.0.5 =
294 +* Fixed: Minor update bug and admin notifications.
295 +
296 += 3.0.4 =
297 +* Fixed: Updated datatable handling.
298 +
299 += 3.0.3 =
300 +* Fixed: Inline scripts/styles management.
301 +
302 += 3.0.2 =
303 +* Fixed: Execution order for scripts and styles.
304 +
305 += 3.0.1 =
306 +* Fixed: Updating and saving snippets.
307 +* Fixed: Admin capability adjustments.
308 +
112 309 = 3.0 =
113 -* Added: 'Test Mode' and 'Status' for items.
114 -* Added: 'Tag' and 'Link Options.'
115 -* Added: 'Inline' and 'Minified' options to the CSS block.
116 -* Added: JavaScript (JS) block options include 'JQuery Dependency,' 'Inline,' 'Minified,' and 'Attribute.'
117 -* Added: Attributes for JavaScript in the 'Includes block.'
118 -* Added: 'Export/Import' function.
119 -* Updated: Database structure.
120 -* Updated: The style of the admin interface.
310 +* Added: Test Mode and snippet Status.
311 +* Added: Tagging and Link options.
312 +* Added: Inline and Minified options for CSS.
313 +* Added: JavaScript optimization options.
314 +* Added: Export/Import feature.
315 +* Improved: Updated database and admin interface.
121 316
122 317 = 2.5.6 =
123 -* Fixed: minor bug in page-list
318 +* Fixed: Minor bug in snippet list.
124 319
125 320 = 2.5.5 =
126 -* Fixed: minor bug
321 +* Fixed: General minor fixes.
127 322
128 323 = 2.5.4 =
129 -* Fixed: security update
324 +* Fixed: Security enhancements.
130 325
131 326 = 2.5.3 =
132 -* Fixed: security update
327 +* Fixed: Additional security improvements.
133 328
134 329 = 2.5.2 =
135 -* Fixed: minor bug on main page of the plugin
330 +* Fixed: Minor issues on main plugin page.
136 331
137 332 = 2.5.1 =
138 -* Fixed: minor bug.
333 +* Fixed: General minor fixes.
139 334
140 -= 2.5. =
141 -* Added: alternative shortcode.
142 -* Added: processing shortcodes inserted into the HTML code
335 += 2.5 =
336 +* Added: Alternative shortcode option.
337 +* Added: Shortcode processing within HTML snippets.
143 338
144 339 = 2.4 =
145 -* Fixed: Adding tag <textarea> in HTML code
146 -* Fixed: shortcode code
340 +* Fixed: Handling of `<textarea>` tags in HTML.
341 +* Fixed: Shortcode functionality.
147 342
148 343 = 2.3.2 =
149 -* Fixed: deleting item
150 -* Fixed: saving into database
344 +* Fixed: Snippet deletion and database saving issues.
151 345
152 346 = 2.3 =
153 -* Fixed: minor bugs
347 +* Fixed: Minor bug fixes.
154 348
155 349 = 2.2 =
156 -* Fixed: order of connection scripts and styles
350 +* Fixed: Improved script/style loading order.
157 351
158 352 = 2.1 =
159 -* Fixed: Saving in the database
353 +* Fixed: Database save issue resolved.
160 354
161 -
162 355 = 2.0 =
163 -* Added: Codemirror
164 -* Optimized: file storage
165 -* Changed: admin style
356 +* Added: CodeMirror integration.
357 +* Optimized: Improved file storage efficiency.
358 +* Improved: Admin interface styling.
166 359
167 360 = 1.1 =
168 -* Fixed: display shortcode in content
361 +* Fixed: Shortcode display issue in content.
169 362
170 363 = 1.0 =
171 -* Initial release
364 +* Initial release.