WPCode — ievietojiet galvenes un kājenes + pielāgotus koda fragmentus — WordPress kodu pārvaldnieks

Apraksts

Insert Headers & Footers + Full WordPress Code Snippets Plugin

WPCode (formerly known as Insert Headers and Footers by WPBeginner) is the most popular code snippets plugin for WordPress used by over 2 million websites.

We make it easy for you to add code snippets in WordPress without having to edit your theme’s functions.php file.

Our simple insert headers and footers interface allows you to insert code like Google Analytics, custom CSS, Facebook Pixel, and more to your WordPress site’s header and footer as well other areas of your website. No need to edit your theme files!

Aside from Header and Footer scripts, you can also use WPCode to insert custom PHP code snippets, JavaScript code snippets, CSS code snipets, HTML code snippets, and text snippets with full conditional logic and code priority support.

We took the pain out of adding custom code snippets in WordPress and made it easy.

I have been using Insert Headers and Footers and it is such a useful tool. Super helpful and the very best of its kind. Highly recommend
The_Gibble – WordPress user

Ātrs pārskats par WPCode no WPBeginner

Iepazīstinām ar jauno WPCode Pro
WPCode Lite piedāvā daudz spēcīgu funkciju bez maksas, taču mēs ieklausījāmies lietotāju atsauksmēs un izveidojām WPCode Pro ar vēl vairāk pārsteidzošām funkcijām, lai atvieglotu jūsu darba procesu. Tas ietver gudru nosacījuma loģiku, koda fragmentu saglabāšanu mākoņbibliotēkā, koda pārskatīšanu, lapām specifiskus fragmentus, dziļāku integrāciju ar populāriem spraudņiem, piemēram, WooCommerce, Easy Digital Downloads un daudz ko citu. Click here to purchase the best premium WordPress code snippet plugin now!

Future Proof Code Snippet Management

Most WordPress tutorial websites ask you to add code snippets to your theme’s functions.php file. This makes managing code snippets messy, and it also prevents you from updating your theme.

If you ever update your theme or switch to another theme, then you will lose all custom code functions that you added in your functions.php file.

WPCode to atrisina, nodrošinot vienkāršu veidu, kā ievietot galvenes un kājenes skriptus kopā ar citiem koda fragmentiem tieši no jūsu WordPress informācijas paneļa. Šie koda fragmenti faktiski darbojas tā, it kā tie atrastos jūsu tēmas functions.php failā.

Mūsu viedā koda fragmenta validācija palīdz novērst bieži sastopamas koda kļūdas, lai nodrošinātu, ka, pievienojot koda fragmentus vai galvenes un kājenes skriptus, nekad neizjaucat savu vietni.

Visus galvenes un kājenes skriptus, kā arī citus pielāgotus koda fragmentus varat pārvaldīt vienā ekrānā. Turklāt varat ērti organizēt koda fragmentus, izmantojot Birkas, un pievienot atgādinājuma piezīmes katram koda fragmentam.

Jaunā WPCode mākoņa bibliotēka ļauj saglabāt visus pielāgotos koda fragmentus mākoņa bibliotēkā, lai jūs varētu taupīt laiku un viegli atkārtoti izmantot koda fragmentus vairākos vietņu projektos. Varat paturēt savus koda fragmentus pilnībā privātus vai kopīgot tos ar kopienu, lai sniegt atbalstu, vienlaikus uzlabojot savu sociālo profilu.

This plugin allows me to not only add things to my site whenever needed, but it takes me only seconds to accomplish it.
David Weber – WordPress user

Full Code Snippets Library and Code Generators

Vai esat kādreiz vēlējies centrālo vietu, kur atrast visus populārākos WordPress koda fragmentus, kas ir pārbaudīti un ir pierādījuši savu darbību?

Kad mēs sākām spraudni Insert Headers and Footers, mēs arī to darījām. Tāpēc mēs izveidojām WordPress koda fragmentu bibliotēku tieši WPCode spraudnī.

This makes it easy for you to customize WordPress functions with just a click using expert written code snippets.

Jūs atradīsit pārbaudītus PHP koda fragmentus populāriem funkciju pieprasījumiem, piemēram, atspējot REST API, atspējot XML-RPC, atspējot komentārus, atļaut SVG failu augšupielādi, atspējot Gūtenbergu, pievienot klasisko redaktoru un daudz ko citu, neinstalējot katram atsevišķus spraudņus.

I was very hesitant to get into any of the code for my website. Your plugin made it easy for me to do.
Conbrio75 – WordPress user

Mēs arī izveidojām iespēju saglabāt jūsu koda fragmentus vietnē WPCode mākoņa bibliotēka, lai jūs varētu to viegli atkārtoti izmantot citās vietnēs, klientu projektos vai pat kopīgot to ar plašāku kopienu.

WPCode Cloud Library palīdz labāk sakārtot koda fragmentus vienā centrālā vietā, lai jūs varētu ietaupīt vairāk laika un paātrināt darbplūsmu, pārvaldot vietnes. Vairs netērējiet laiku, meklējot pielāgotas piezīmes vai Github kodu.

Aside from our growing code snippets library, we also have WordPress code generators to help you quickly get ready-to-use custom code using the latest WordPress coding standards and API’s.

Pielāgotu kodu ģeneratora ar administratora saskarni piemēri:

  • Custom Post Type Generator – Create custom code snippet for Post Types.
  • Custom Taxonomy Generator – Get custom code snippet for Taxonomies.
  • WP Query Generator – Get custom code snippet for WP_Query to load posts.
  • Custom Sidebar Generator – Create custom code snippet to register custom sidebars or widget-ready areas.
  • Custom Widget Generator – Custom code snippet to register custom widgets.
  • Navigation Menu Generator – Custom code snippet for registering new navigation menu locations in your theme.

Papildus iepriekšminētajam, mums ir arī koda fragmentu ģenerators cron darba plānošanai, skriptu un skriptu reģistrēšanai; stilu lapas, pielāgota ziņas statusa pievienošana un daudz kas cits.

Conditional Logic for Code Snippets + Code Insertion Priority

Our goal with WPCode was to create a WordPress code snippets plugin that’s both EASY and POWERFUL.

Tāpēc papildus mūsu globālajiem galvenes un kājenes skriptiem mēs pievienojām papildu funkcijas, piemēram, nosacījumu loģiku koda fragmentiem, un padarījām to vienkāršu.

Instead of learning WordPress conditional logic queries, you can use our beginner-friendly conditional logic user interface to:

  • Load code snippets for logged in users only
  • Load PHP code snippets for specific user roles
  • Load PHP code snippets only on specific page URLs
  • Insert header and footer pixel scripts on specific pages
  • Show code snippets based on type of page
  • Run code snippet only on certain post types
  • Load header and footer code snippet based on referrer source
  • and more…

We also added both automatic code insertion and manual code output using shortcodes.

Our Auto Insert feature allows you to run the code snippet everywhere or choose from custom options like:

  • Run code snippet only on frontend
  • Run code snippet only in WordPress admin area
  • Add header and footer scripts sitewide
  • Insert PHP code snippet before or after post content
  • Insert code snippet before or after specific paragraph
  • Insert code snippet on specific archive pages
  • Ievietot koda fragmentus pēc konkrētas WooCommerce funkcijas (Pro funkcija)

Aside from that, we also added a visual code snippet priority system, so you can choose the order for your custom functions to avoid code conflict.

This is such a useful plugin! It makes it so much easier to include things on your website!
Understoryliving – WordPress user

Un, lai nodrošinātu vēl lielāku elastību un pielāgošanu, esam pievienojuši iespēju pievienot lapai specifiskus koda fragmentus tieši no WordPress klasiskā redaktora, kā arī Gūtenberga redaktora. Varat pat ielādēt koda fragmentus atkarībā no ierīces veida, piemēram, tikai mobilajām ierīcēm paredzētus koda fragmentus, tikai darbvirsmas koda fragmentus utt.

Import and Export Code Snippets

Pārvaldāt vairākas vietnes vai izstrādājat lietojumprogrammu sagatavošanas vidē?

Mēs piedāvājam vienkāršu veidu, kā importēt un eksportēt jūsu pielāgotos koda fragmentus, funkcijas, kā arī galvenes un kājenes skriptus, lai palīdzētu jums taupīt laiku.

Varat arī saglabāt savus koda fragmentus WPCode Cloud (Pro funkcija), lai jūs varētu viegli atkārtoti izmantot tos pašus koda fragmentus vairākās vietnēs. Tas arī ļauj labāk sakārtot koda fragmentus, nevis tērēt laiku nejaušu Github ierakstu meklēšanai.

Pārejat no cita koda fragmentu spraudņa?

Mums ir automātiskās importēšanas funkcija, kas importē jūsu pielāgotos koda fragmentus gan no spraudņa Woody Code Snippets, gan Code Snippets Pro.

Simple plugin I use in quite every site. Very useful to insert scripts and tags.
tommasoperego – WordPress user

Example Use Cases

WPCode is the most powerful code snippet + headers and footers plugin for WordPress. Here are some of the top use-cases why smart website owners and developers love us:

  • Insert Headers and Footers scripts
  • Insert Google Analytics Tracking Code in Header and Footer
  • Insert PHP Code Snippets or JavaScript code snippet without modifying theme’s functions.php file
  • Insert Facebook Pixels code, Google Conversion Pixels code, and other Advertising Conversion Pixel Scripts in WordPress header and footer with conditional logic
  • Insert Google AdSense Ads code, Amazon Native Contextual Ads code, and other Media Ads code
  • Insert Custom JavaScript, CSS, and HTML code
  • Insert Site Verification Meta tags for Social Media, Google Search Console, and other Domain verification in the header and footer of your site
  • Insert re-usable custom content blocks and PHP code snippets
  • Insert Ads code in content after specific paragraphs
  • Show or hide custom code snippets based on conditional logic
  • Disable XML-RPC, Disable Rest API, disable comments, allow SVG file uploads, disable Gutenberg and enable Classic Editor without adding extra plugins.

Simply put, WPCode is the one plugin that helps you get rid of dozens of other plugins without losing functionality.

Full WPCode Feature List

The simple interface of WPCode plugin (formerly known as Insert Headers and Footers) gives you one place where you can insert header and footer scripts as well as custom code snippets rather than dealing with dozens of different plugins.

Below is a full list of WPCode features:

  • Ātri uzstādāms
  • Unlimited code snippets
  • Simple to insert header and footer scripts globally
  • Beginner Friendly Code Editor with Syntax Highlighter for PHP, JavaScript, and HTML
  • Smart Code Validation to Prevent PHP Errors
  • Insert header code and/or footer code using Conditional Logic
  • Add Google Analytics code to header and footer
  • Add custom CSS code to any theme
  • Insert Facebook pixel code in header and footer
  • Ievietojiet jebkuru kodu vai skriptu, tostarp HTML un Javascript
  • Insert PHP Code Snippets
  • Ready-made Code Snippet Library
  • Custom WordPress Code Snippet Generator
  • Show or Hide PHP Code Snippets based on conditional logic
  • Run PHP code and custom code snippets everywhere or in select areas using smart auto-insert rules.
  • Manually insert PHP code snippets using shortcodes anywhere on website
  • Add Rich Text Ads and Content Snippets automatically on posts & pages.
  • Export / Import Code Snippets
  • Jauns Saglabāt fragmentus mākoņbibliotēkā – vairs netērēsiet laiku, meklējot Github atsauces vai pielāgotas piezīmes. Visi jūsu fragmenti glabājas jūsu privātajā koda fragmentu mākonī.
  • Jaunums Padziļināta integrācija ar Gutenberg, WooCommerce un citām ierīcēm.
  • Ierīcei specifiski koda fragmenti (piemēram, ielādes koda fragmenti tikai mobilajās ierīcēs, tikai galddatoros utt.)
  • and more features coming soon.

Kredīti

Iespraudni Insert Headers and Footers pirmo reizi izveidoja Syed Balkhi un WPBeginner komanda 2011. gadā.

It was later rebranded to WPCode in 2022 by Syed Balkhi to add powerful code snippets features that users were requesting for.

Branding Guideline

WPCode™ is a trademark of WPCode LLC. When writing about the Insert Headers and Footers – Code Snippets plugin by WPCode, please make sure to uppercase the initial 3 letters.

WPCode (correct)
WP Code (incorrect)
wpcode (incorrect)
wp code snippets (incorrect)

Ko tālāk

Ja jums šis spraudnis ir noderīgs, lai ievietotu galveni un kājenes + pielāgotus koda fragmentus, tad, lūdzu, atstājiet labu vērtējumu un apsveriet iespēju pārbaudīt citus mūsu projektus:

  • WPForms – #1 drag & drop online form builder for WordPress (trusted by 5 million sites).
  • OptinMonster – Get More Email Subscribers with the most popular conversion optimization plugin for WordPress.
  • MonsterInsights – See the stats that matter and grow your business with confidence. The best Google Analytics plugin for WordPress.
  • SeedProd – Izveidojiet skaistas galvenās lapas ar mūsu jaudīgo vilkšanas un nomešanas mērķlapu konstruktoru.
  • WP Mail SMTP – Improve email deliverability for your contact form with the most popular SMTP plugin for WordPress.
  • RafflePress – Best WordPress giveaway and contest plugin to grow traffic and social followers.
  • Smash Balloon – #1 social feeds plugin for WordPress – display social media content in WordPress without code.
  • AIOSEO — oriģināls WordPress SEO spraudnis, kas palīdz iegūt augstāku vietu meklēšanas rezultātos (tam uzticas vairāk nekā 3 miljoni vietņu).
  • Push Engage — sazinieties ar apmeklētājiem pēc tam, kad viņi atstāj jūsu vietni, izmantojot vadošo tīmekļa informatīvo paziņojumu spraudni.
  • TrustPulse – Add real-time social proof notifications to boost your store conversions by up to 15%.
  • SearchWP – The most advanced custom WordPress search plugin to improve WordPress search quality.
  • AffiliateWP – #1 affiliate management plugin for WordPress. Add a referral program to your online store.
  • WP Simple Pay — #1 Stripe maksājumu spraudnis pakalpojumam WordPress. Sāciet pieņemt vienreizējos vai periodiskos maksājumus bez iepirkumu groza.
  • Easy Digital Downloads – The best WordPress eCommerce plugin to sell digital products (eBooks, software, music, and more).
  • Sugar Calendar – A simple event calendar plugin for WordPress that’s both easy and powerful.
  • WP Charitable – Top-rated WordPress donation and fundraising plugin for non-profits.

Visit WPBeginner to learn from our WordPress Tutorials and find out about other best WordPress plugins.

Piezīmes

Ievietot galvenes un kājenes, izmantojot WPCode, ir vienkāršākais veids, kā ievietot kodu WordPress galvenēs un kājenēs.

Mūsu mērķis ir atvieglot WordPress lietošanu, izmantojot mūsu WordPress spraudņus. un resursus, piemēram, WPBeginner, lielākā WordPress resursu vietne iesācējiem.

Man šķiet, ka mēs šeit to esam izdarījuši. Ceru, ka galvenes un kājenes ievietošana jums noderēs, lai savā vietnē ievietotu skriptus.

Paldies Syed Balkhi

Ekrānuzņēmumi

  • WordPress Code Snippets Management Screen
  • Ready-Made Code Snippets Library
  • Edit PHP Snippets with Code Syntax Highlighter
  • Show / Hide Code Snippets with Smart Conditional Logic
  • Custom WordPress Code Generators
  • Example of Custom Post Type Generator
  • Insert Header and Footer Scripts Globally
  • Import and Export Code Snippets
  • Privātā fragmentu bibliotēka spraudnī
  • Lapas specifisko skriptu metabox

Uzstādīšana

  1. Instalējiet spraudni WPCode — galvenes, kājenes un koda fragmentu ievietošana, augšupielādējot direktoriju insert-headers-and-footers direktorijā /wp-content/plugins/. (Skatiet norādījumus vietnē kā instalēt WordPress spraudni.)
  2. Activate WPCode – Insert Headers, Footers, and Code Snippets plugin through the Plugins menu in WordPress.
  3. Insert code in your header and footer or add custom code snippets by going to the Code Snippets menu.

BUJ

Vai es varu izmantot WPCode — ievietot galvenes un kājenes, lai instalētu Google Analytics?

Jā, varat ievietot savu Google Analytics kodu laukā Skripti galvenē.

Vai es varu izmantot WPCode — ievietot Google AdSense galvenes un kājenes?

Jā, lai verificētu savu kontu vai atzīmētu savu lapu automātiskajām reklāmām, ielīmējiet kodu, ko AdSense jums piešķir laukā Skripti galvenē.

Will I lose my snippets if I change my WordPress theme?

No, the idea behind WPCode – Insert Headers, Footers, and Code Snippets plugin is so you can safely add code snippets.

All code snippets are stored in the WordPress database, independent of the theme upgrades.

Can I switch back to the old version of Insert Headers and Footers?

Yes, if you don’t want the advanced code snippets functionality, then you can switch back to the old Insert Headers and Footers features by simply going to the Settings Menu and clicking on the Headers & Footers mode.

What Type of Code Snippets can I add?

With WPCode, you can add any type of code snippet that you would otherwise add in your theme’s functions.php file or in a site-specific plugin.

This includes custom PHP snippets, JavaScript snippets, HTML snippet, CSS snippets, Text Snippets, Conversion pixels, Tracking scripts, AdSense or other banner ads code, and more.

What are some example plugins WPCode can replace?

WPCode comes with a ready-made code snippets library that allows you to replace several popular plugins including:

  • Disable Comment plugins
  • Disable XML-RPC plugins
  • Atspējot Rest API spraudņus
  • Disable Gutenberg plugins
  • Classic Editor plugin
  • Allow SVG File Upload plugins
  • Disable RSS feed plugins
  • Disable Search plugins
  • Disable Automatic Updates plugins
  • Disable Admin Bar plugins
  • Disable Widget Blocks plugin
  • Classic Widgets plugin
  • Remove WordPress Version Number plugins
  • Google Analytics plugins
  • Facebook Pixel plugins
  • Google AdSense plugins
  • Custom Post Types UI plugins
  • Other WordPress Generator plugins

… and basically any plugin that adds a functionality which can be added via custom code snippets.

Is WPCode translation ready?

Yes, WPCode has full translation and localization support via the insert-headers-and-footers textdomain. Based on your site language, required .mo and .po translation files will be downloaded and placed into the default WordPress languages directory.

Atsauksmes

21 februāris, 2024
Easy to use and effective. Thank you!
15 februāris, 2024
Great for inserting snippets of code wherever you need to!
Lasīt 1 295 atsauksmes

Autori un izstrādātāji

“WPCode — ievietojiet galvenes un kājenes + pielāgotus koda fragmentus — WordPress kodu pārvaldnieks” ir atvērtā pirmkoda programmatūra. Šo spraudni ir veidojuši šādi cilvēki.

Līdzdalībnieki

“WPCode — ievietojiet galvenes un kājenes + pielāgotus koda fragmentus — WordPress kodu pārvaldnieks” ir tulkots lokalizācijās 29. Paldies tulkotājiem par ieguldījumu.

Tulkot “WPCode — ievietojiet galvenes un kājenes + pielāgotus koda fragmentus — WordPress kodu pārvaldnieks” savā valodā.

Vai jūs interesē attīstība?

Pārlūkojiet kodu, apmeklējiet SVN krātuvi vai abonējiet attīstības žurnālu, ko izveidojis RSS.

Izmaiņu žurnāls

2.1.8

  • Tweak: We changed the way the code generators are loaded to improve performance overall.
  • Tweak: We changed the way translations are loaded for better performance.

2.1.7

  • New: WPCode now has a Dark Mode for those late night coding sessions. Enable it on the settings page.
  • Tweak: We improved the way the error messages are displayed in the snippet editor for more clarity.
  • Fix: The snippet editor was no longer running syntax checks for PHP snippets upon activation.
  • Fix: We fixed a bug where in certain versions of Safari the auto-insert location was being unset when saving a snippet.

2.1.6

  • New: We added the option to delete all the plugin data on uninstall.
  • Fix: The code of duplicated snippets was sometimes removing some slashes.
  • Fix: Error count was not correctly updated when snippets were trashed or deleted.

2.1.5

  • New: Priority column added to the list of snippets, order by snippet priority.
  • Fix: Fixed a notice that was being thrown in new sites when running the installation routines.
  • Fix: Filtering by tag or location in the list of snippets was not working correctly.

2.1.4.1

  • Fix: Avoid notices for errors that don’t include the file parameter.
  • Fix: Improve compatibility with PHP 8.2 for the snippet cache class.

2.1.4

  • New: Enhanced error tracking: Errors generated by PHP snippets on your website will be displayed within the snippet’s context, simplifying the debugging process.
  • New: We’ve refined the snippet auto-deactivation process. Now, only snippets that produce fatal errors in the admin section will be deactivated. All other errors will be reported through the newly implemented error tracker.
  • New: We introduced three new columns to the snippet list: ID, Code Type, and Shortcode.
  • Tweak: We’ve enhanced our file caching mechanism to prevent redundant requests in scenarios where files aren’t written properly due to certain setups.
  • Tweak: We’ve implemented an additional check to ensure that closing PHP tags don’t disrupt the execution of snippets.
  • Fix: We’ve corrected the sorting of snippets when arranged by their last updated date.

2.1.3.1

  • Fix: Shortcode attributes were not being correctly parsed in some scenarios.

2.1.3

  • New: We improved how we manage automatic snippet disabling when errors occur. You’ll now get detailed insights into which snippet is responsible for the error and the exact line where the problem occurred.
  • Tweak: We adjusted the way snippets are preloaded to improve compatibility with object cache.
  • Fix: The snippets added as shortcodes were not correctly displayed in the admin bar.

2.1.2

  • Tweak: We adjusted the way snippets are tracked in the Admin Bar Code Spotter to avoid wrong numbers in certain locations.
  • Tweak: We improved the way the Admin Bar Code Spotter menu is loaded for better compatibility with other plugins and older themes.
  • Tweak: Changed the way assets used by the admin bar are loaded to avoid errors if the head is loaded multiple times.

2.1.1

  • New: Easily duplicate a snippet with all of its settings with the new Duplicate link in the list of snippets.
  • Fix: Taxonomy page conditional logic was not being correctly assigned for category and tags archives.
  • Tweak: Adjust admin bar markup to avoid using a heading.

2.1.0

  • New: See exactly which scripts and snippets are loaded on the current page with the WPCode admin bar info menu.
  • Tweak: Minor update to connect process.

2.0.13.1

  • Fix: Improve compatibility with older WordPress versions before version 4.7.
  • Fix: Add escaping to tag filter links in the list of snippets.

2.0.13

  • New: We have added user customization options for the list of snippets in the admin. Now, you can choose snippet list columns, determine the number of snippets to display, and set the default order of the snippets.
  • New: When you save a snippet, the WPCode editor will retain the cursor position, making it easier for you to continue editing larger snippets.

2.0.12

  • New: You can now add shortcode attributes and use them in snippets. Any attribute you define becomes available as a variable in PHP & Universal code snippets.
  • Tweak: We improved the way the editor is loaded when users enable the “Disable syntax highlighting when editing code” in their profile.
  • Tweak: We adjusted the way the editor gets refreshed when changing a snippet code type.
  • Fix: The Auto-Insert location was getting reset with every code type change.

2.0.11

  • New: Automatically disabled snippets due to errors will now be highlighted in the list for easier debugging.
  • New: We added a filter to allow users to easily customize the Codemirror settings for the WPCode editor.
  • Tweak: We extended our plugin-specific snippet loading to allow plugin version checks.

2.0.10

  • New: We added a way to load more snippets in the WPCode Library relevant to other plugins you are using.
  • Fix: We added an extra filter removal to prevent WordPress core from automatically adding the rel tag to snippets where it may break the syntax.
  • Fix: We improved backwards compatibility with older WordPress versions.

2.0.9

  • New: We redesigned the auto-insert location picker to make it easier to find the right place to insert your snippets.
  • Fix: We fixed an edge-case where a snippet getting automatically deactivated due to throwing an error would have its code changed.
  • Fix: Inserting a snippet as a shortcode was ignoring the conditional logic rules enable toggle and always applying rules.
  • Fix: We updated the way we check the taxonomy term id when applying conditional logic rules.
  • Fix: Security hardening for deleting logs.

2.0.8.1

  • Fix: Improve compatibility with PHP 8.1 for our error handling class.

2.0.8

  • New: We added the option to log PHP errors thrown by snippets added with WPCode to make it easier to track down issues.
  • New: We added a new auto-insert location to improve the available conditional logic rules you can use with PHP snippets.
  • Tweak: We added more info regarding the error thrown when trying to activate a PHP snippet with a syntax error.
  • Tweak: Conditional logic rules are now also applied to shortcodes for better control of output.
  • Tweak: We updated the code editor for PHP snippets to give you a better experience when editing snippets.
  • Fix: We adjusted the permission checks of some ajax endpoints to avoid any potential unwanted usage.
  • Fix: The Safe Mode notice was no longer being displayed on the WPCode pages, so we added that back when needed.

2.0.7

  • New: We added the ability to resume editing snippets that were created using the WPCode snippet generator.
  • Fix: We adjusted the code output in the editor to improve support for using HTML entities.
  • Fix: We made sure conditional logic rules are loaded correctly in the admin when used globally.
  • Fix: We added an extra permissions check to the library endpoints to limit access.

2.0.6

  • New: WPCode Library public snippets can now be installed with 1-click on sites connected to the WPCode Library – no more copy/paste needed!
  • New: We added a new setting for the editor height, so you can set the editor to a custom height or make it automatically grow with the code.
  • Tweak: We adjusted the “Connect To Library” functionality to improve support for site names with special characters or empty names.
  • Fix: We added extra checks to prevent errors when certain conditional logic rules were being called too early with PHP snippets.

2.0.5

  • New: 2 new bulk actions are available in the admin to allow enabling or disabling multiple snippets at once.
  • New: We added a new search field for snippets in the admin list which allows you to search using all snippet fields.
  • New: When adding a JavaScript snippet, WPCode will attempt to remove HTML script tags, if present.

2.0.4.4

  • Fix: Added an extra check to prevent errors in setups where the closed metaboxes user option is not an array.

2.0.4.3

  • Tweak: We updated the default behaviour of our page scripts metabox so that it is collapsed by default.

2.0.4.2

  • Tweak: Changing SweetAlert library version to prevent the interference on .ru sites.

2.0.4.1

  • Fix: Don’t show the metabox when headers & footers only mode is enabled.

2.0.4

  • New: We added more free snippets to the snippet library, simply connect your website to the WPCode Library and load them directly from the WPCode plugin.
  • New: We added a new code type for CSS Styles that many of you requested, so now it’s even easier to add custom styles to your site with all the powerful WPCode features.
  • Tweak: We added an extra check to make sure when you copy-paste a PHP snippet it’s easier to use by removing the opening tag, if present.
  • Fix: We fixed a bug where in certain scenarios a snippet’s code would get changed when changing its status from the list of snippets.

2.0.3

  • Tweak: Adjusted the hook used to load “Run Everywhere” PHP snippets to “plugins_loaded” to allow running snippets on earlier hooks.
  • Fix: Adjusted the link in the plugins list to point to the correct admin page in headers & footers mode.
  • Fix: Adjusted logic for headers & footers page when user is not allowed to edit HTML & improved messaging based on permissions.

2.0.2

  • Tweak: Snippets used as shortcodes will no longer be executed if they are inactive.
  • Fix: Conditional logic rules for homepage were not working correctly in all scenarios.
  • Fix: Improved auto-insert location matching to avoid snippets not loading in some setups.
  • Fix: We improved the importer tools to avoid unslashing certain types of PHP code.

2.0.1

  • Tweak: Auto-insert is now the default option when creating a new snippet.
  • Tweak: We updated the way we add custom capabilities to improve a scenario where the plugin needed to be reactivated.
  • Fix: We updated the way PHP code is saved to improve support for backslashes.
  • Fix: We tweaked the Page URL rules that were not matching in some cases.

2.0.0

  • New: Insert Headers and Footers is now WPCode – We make it easy for you to add code snippets in WordPress without having to edit your theme’s functions.php file.
  • New: Full Code Snippets Library – WordPress code snippets library right inside the WPCode plugin.
  • New: WordPress code generators to help you quickly generate ready-to-use code using the latest WordPress coding standards and APIs.
  • New: Conditional Logic for Code Snippets – Instead of learning the various WordPress conditional logic queries, you can use our beginner-friendly conditional logic user interface.
  • New: Auto-insert in various locations of your site or manual code output using shortcodes.

1.6.2

  • Fix: Reverted a method visibility that was conflicting with other plugins using it.

1.6.1

  • Tested compatibility with WordPress 5.9

1.6.0

  • Labojums: Rādīt iestatījumu CTA tikai tiem lietotājiem, kuri var apmeklēt iestatījumu lapu.
  • Uzlabojums: Uzlabota iestatījumu lapas lietošanas ērtība, veicot īpaši pielāgotas WordPress instalācijas.

1.5.0

  • Jaunums: kodu redaktori tagad izmanto CodeMirror sintakses izcelšanai.

1.4.6

  • Pārbaudīta saderība ar WordPress 5.4.2

1.4.5

  • Pārbaudīta saderība ar WordPress 5.3.2
  • Pievienojiet skriptu drukāšanas atbalstu uzreiz aiz sākuma body taga, izmantojot darbību wp_body_open

1.4.4

  • Pārbaudīta saderība ar WordPress 5.2
  • Atjaunināti teksta domēna standarti un spraudņa galvenē

1.4.3

  • Atjaunināti Bieži uzdotie jautājumi
  • Ieviesti trīs jauni filtri: disable_ihaf, disable_ihaf_footer, disable_ihaf_header

1.4.2

  • Koda tīrīšana

1.4.1

  • Labojumi lietotājiem, kuru PHP versija ir mazāka par 5.5

1.4

  • Pārbaudīts ar WordPress 4.7.2
  • iztīrīts kods

1.3.3

  • Pārbaudīts ar WordPress 4.3
  • Labojums: plugin_dir_path() un plugin_dir_url() tiek izmantoti vairāku vietņu vai simsaišu atbalstam

1.3.2

  • Labojums: informācijas paneļa logrīka logotipa URL, ja nevar ielādēt RSS plūsmu
  • Labojums: WordPress 4.0 atbalsts
  • Pievienots: POT valodas fails

1.3.1

  • Uzlabota iestatījumu lietotāja saskarne WordPress 3.8+
  • Pārcelta minimālās versijas prasība

1.3

  • fiksēts readme fails

1.2

  • iztīrīts kods

1.1

  • novērsta nevajadzīga CSS ielāde

1.0

  • Sākotnējā versija