All snippets in one list
Under Snippets you see every snippet with its type, place and an on/off switch. You can search, filter by CSS, JavaScript, HTML or PHP, and duplicate a snippet.
Your own code in the right place
Code Snippets adds CSS, JavaScript, HTML and PHP where it belongs – with safe PHP that cannot crash the website. Pro controls when and where the code runs.
In WordPress the plugin is called Datoden Code Snippets – in the DT-addons menu it is listed as DT-code.
DT-code adds your own CSS, JavaScript, HTML and PHP to the website without touching the theme. Each snippet has a type, a place where it is added and an on/off switch. Changes are saved as you type and show on the site right away.
Under Snippets you see every snippet with its type, place and an on/off switch. You can search, filter by CSS, JavaScript, HTML or PHP, and duplicate a snippet.
Under Where you pick a place such as In the head, Right after <body>, In the footer, Before or After the content, Run everywhere, or places in the admin. With Only with the shortcode, the snippet appears wherever you add its shortcode in a page, post or widget.
PHP is checked before it runs. If something is wrong, the website keeps using the last version that worked and the editor shows the error and the line. If a PHP snippet stops with an error on the website, only that snippet is paused.
If you cannot reach the admin, add define('DT_CODE_SAFE', true); to wp-config.php. No PHP snippets run until you remove the line.
If the site has WPCode, the Move from WPCode card appears. The code, type, place, priority and on/off state all come along. Snippets that are active in WPCode are imported switched off so nothing runs twice, and one click then turns WPCode off and them on.
Under When you choose Only the pages I choose or All pages except the ones I choose, Logged in or Logged out visitors, Computer or Mobile and, on a multilingual site, a language. Page choices apply to places where the page is known.
Under Time, choose Between dates and set a start and end. Turn on Every year to repeat it, for example a Christmas look from 1 December to 6 January.
While you edit, a version is kept at most every ten minutes. Under Earlier versions, click Bring back to put older code back in the editor.
Everything without a Pro label works for free. What is marked Pro is included in the Pro version.
After installing – how to set up Code Snippets.
Go to DT-addons → DT-code in the WordPress menu. If you use WPCode, you can start with Import from WPCode.
Click New snippet, give it a name and choose a type: CSS, JavaScript, HTML or PHP. Write PHP without <?php at the start.
Under Where, pick where the code should go – for example In the head for CSS and tracking codes.
Turn on the On switch. The snippet is saved automatically and shows on the site straight away.
Pro builds on the free version – it stays as the base, with all your settings, and Pro adds the rest.
Everything in the free version, plus:
Choose how many websites and how you want to buy. Prices exclude VAT – VAT is calculated at checkout.
The licence follows your Datoden account – no key to paste.
The purchase is saved on your Datoden account as soon as the payment has gone through.
Get the Pro plugin under My account → My purchases → Licences.
Drop the zip file on Website Guard. Pro is added on top of the free version – everything you have done stays.
Connect the website in Website Guard. The Pro updates then arrive as ordinary WordPress updates.
Administrators who are allowed to add unfiltered HTML. On a multisite network, that means super admins.
The editor shows the error and the line number, and the site keeps running the last version that worked. If the snippet stops on the website, only that snippet is paused.
Yes. Shortcodes like [wpcode id="12"] keep working when WPCode is turned off.
No. The page cache is cleared for you when you change a snippet.
Set Priority under More. Lower numbers run first; the default is 10.
Nothing stops working. A purchase never runs out, and when a subscription ends the plugins keep every function – only the updates from Datoden stop.
The first number in the version. A purchase includes every update in that major version, for example all 1.x versions. A new major version (2.0) comes about once a year with clearly new features and comes at a discount as an upgrade. A subscription always includes it.
Websites connected to your Datoden account with a Pro plugin switched on, in the order they were connected. Disconnect a website in My websites to move the licence to another.
No. The website is connected to your Datoden account with Website Guard, and Datoden knows which updates your licences include.
Yes. Deactivate Pro – the free version keeps running with the same settings. Functions that only exist in Pro stop, but nothing is deleted.
Yes. Pro is an add-on: the free version stays installed and active as the base and is updated from WordPress.org as usual, and Pro adds the Pro features on top. On WordPress.org the free versions are called Datoden …, for example Datoden Code Snippets.
Prices exclude VAT. VAT is calculated at checkout from your country. Companies in other EU countries can enter their VAT number.
Your licences, websites and downloads are under My account → My purchases → Licences.