Woody ad snippets – insert any code, text, or ads via using conditions – WordPress plugin Free download

Click to Download

Woody ad snippets – insert any code, text, or ads via using conditions


Stop re-using the same content over and over again!
Stop inserting PHP code to function.php!
Stop adding google analytics, yandex metrics and external code to header and footer php files!
Stop wasting time on changing 100 pages with repeated content!

Woody ad snippets will make your life so much easier. The plugin helps to create and store code snippets or duplicated text in a special library at the admin bar of your website. Use the shortcode to add a snippet anywhere on your website. Or do it automatically, for example: head, footer and post injections. You can show or hide code snippets using conditional logic.

Why do you need this plugin?

Insert Headers and Footers
Insert Google AdSense Ads, Amazon Native Shopping Contextual Ads, Yandex Direct Ads, Media.net on your website.
Insert Google Analytic Tracking code, Yandex Metrica Tracking Code, Yandex Counter to Header, Footer.
Insert PHP Code Snippets and execute on your website. Register PHP functions, classes, global variables everywhere.
Insert Social media widgets, add any external resources widgets.
Insert Facebook Pixels, Facebook Scripts, Facebook og:image Tag, Google Conversion Pixels, Vk Pixels.
Show or hide code snippets based on conditional logic.
You can save templates of posts or page builders, quotes, and galleries to re-use them on your website.

How It Works?

Example #1

You create a new javascript snippet and add a code you’d like to place on a website. Html snippet editor provides you with tooltips and highlights errors in syntax. Now you need to define where to put a code. For example, you can place the code in header, footer of all pages. This works great for Google Analytics. Create an additional condition: do not show this code to the administrator. It will prevent from tracking user role.

Example #2

You create a text snippet and add a repeated text or a template. You can add a shortcode for the contact form, in case it’s universal for all website pages. Now you can add conditions to show this content to registered users only. Save the text snippet and go to editing pages. If you use the Gutenberg editor, you need to select a special unit. For the classic editor, click the icon of our plugin and add a shortcode of your new snippet.
As you can see, working with snippets is super easy!

All Plugin Features:

Header footer code manager
User-friendly code editor with syntax highlighter.
Create rich text ads using a classic WordPress editor TinyMCE.
Use shortcodes to place a snippet anywhere on a website.
Use a special unit to add a snippet in Gutenberg Editor.
You can send content and additional attributes to a snippet using a shortcode or a special unit (Gutenberg Editor).
Place post snippets automatically on all pages.
Run PHP code everywhere or for a certain shortcode.
Use JavaScript, CSS, and HTML code to create code snippets.
The Unlimited number of code snippets.
Use shortcodes of other plugins.
Show or hide code snippets based on conditional logic.
Export/Import of code snippets.

Where Can You Place a Snippet Automatically?

All website:

Insert Headers and Footers on all pages:

Insert Header — code snippet is added to the source code in header before the </head> tag.
Insert Footer — code snippet is added to the source code in footer before the </body> tag.

Insert to Posts, pages, custom posts:

Insert ads Before Post — post snippets is added to the source code before the </head> tag.
Insert ads Before Content — page snippets is added before the post/page content.
Insert ads Before Paragraph — post snippets is added before a certain paragraph. A paragraph number is listed in the Location number field.
Insert ads After Paragraph — post snippets is added after a certain paragraph. A paragraph number is listed in the Location number field.
Insert ads After Content — page snippets is added after the post/page content.
Insert ads After Post — post snippets is added after the post/page.

Insert to Categories, archives, tags, taxonomy:

Insert AdSense Before Excerpt — snippet is added before the post/page preview.
Insert AdSense After Excerpt — snippet is added after the post/page preview.
Insert AdSense Between Posts — snippet is added between posts.
Insert AdSense Before post — snippet is added before a certain post. A post number is listed in the Location number field.
Insert AdSense After post — snippet is added after a certain post. A post number is listed in the Location number field.

What Are Conditional Logic Options to Show a Snippet?

Page types;
Device types;
Post types;
User role;
Contains cookies;
Where a user came from;
User’s registration date.

Recommended our plugins

Clearfy – all in one optimization tools
Robin Image Optimizer – save money on image compression


We provide free support for this plugin. If you are pushed with a problem, just create a new ticket. We will definitely help you!

Get starting free support

We are very need for your help with translating Woody ad snippets plugin into your native language. We want to make it international and understandable for everyone. Please contact us via email inside the plugin, or create a topic on our support forum if you can help with the translations. In exchange for your help, we will give you better support and our premium plugins absolutely free!

History, Developers, Credits

If you are a long-term user, you may be confused about the new plugin update. You’ve been using an old plugin – Insert php 1.3.0, and now got an extended product – Woody ad snippets. Insert php was the first plugin version to work with PHP code. It was created by Will Bontrager Software, LLC. In 2018, the Webcraftic studio started to actively develop the plugin. We’ve created a roadmap and released several powerful updates that help you to use PHP code more comfortable and secure. Now plugin supports not only PHP but other snippet types as well. We’ve decided to rename the plugin as Woody ad snippets. This name is more suitable for new and powerful plugin features.

More information about the Insert PHP plugin can be found here:


Snippets list
Edit php snippet
Edit text snippet
Setting up automatic placement of snippets
Setting conditional logic to display a snippet
Creating a Snippet for Gutenberg Editor
Adding a snippet shortcode to a text widget


Upload the plugin files to the /wp-content/plugins/plugin-name directory, or install the plugin through the WordPress plugins screen directly.

Activate the plugin through the ‘Plugins’ screen in WordPress

Use the PHP Snippets -> Add snippet, to create a new snippet


How to pass attributes to a snippet using a shortcode?

Add a new attribute “simple” to the shortcode [wbcr_php_snippet id=”xx” simple=”example”].

The attribute “simple” is available in the snippet as the $simple variable. The attribute name can contain Latin letters and lowercase digits. You can also use underscore.

The snippet code executed with an error and I cannot change it, what should I do?

Do not despair! Even an experienced person can make mistakes. We created a secure mode for this case. Go into it and your snippets code will not be executed.

Go to the safe mode by this link: http://your-site-name.dev/wp-admin/?wbcr-php-snippets-safe-mode
Edit the snippet in which you made a mistake;
Leave safe mode by clicking the link: http://your-site-name.dev/wp-admin/?wbcr-php-snippets-disable-safe-mode

Great, now you should not have any issues!

How to pass page content to a snippet?

Pretty often we’d like to hide a part of a text or a form on particular pages and set up display conditions. You need to wrap the content you’d like to pass to a snippet with shortcodes [wbcr_php_snippet id=”xx” simple=”example”]page content[/wbcr_php_snippet]. Page content in a snippet is located in the $content variable.

Does plugin support Gutenberg editor?

Yes, it does. You can add there special blocks from our plugin.

I used the old plugin Insert php 1.3.0. What should I expect in 2.x.x version?

The old version of Insert php 1.3.0 worked this way: you wrapped PHP code with shortcodes [insert_php]php code[/insert_php]. Starting from version 2.x.x and higher, you need to create special snippets to place PHP code. Use a snippet shortcode [wbcr_php_snippetid=”xx”] instead of shortcodes [insert_php][/insert_php] to execute PHP code on pages.

We recommend you to move all your code from the post editor to snippets.

Important! TinyMCE converts double quotes to special characters. So if you place this code on the snippet editor, it may not work. To avoid this problem, replace all special symbols of double quotes in your PHP code with classic double quotes.

How long are you planning to support the old version 1.3.0?

60% users have already downloaded 2.x.x version. We are trying to reach the number of 80%. The deadline for support is scheduled for March 1, 2019.

You can download the old plugin version from here.

I don’t like the new plugin version. How can I roll back to 1.3.0 and don’t get updates?

First of all, please, take some time to actually go through the new version. Usually, it takes a week to see how useful this version may be for you. If you’ve faced any problems or found some bugs, feel free to contact us at our support forum.

You can always download the old version (1.3.0) from here.

To avoid getting updates, open the PHP file wp-content/plugins/insert-php/insert_php.php and change the plugin version to 9.9.9.

Is there any plugin documentation?

You can find the detailed documentation in here.

Is plugin compatible with GDPR?

Yes, the plugin is fully compatible with GDPR.

Can the plugin be completely uninstalled?

Go to the settings page and enable the “Complete uninstall” option. Than, when you delete Woody ad snippets using the ‘Plugins’ menu in WordPress it will clean up the database table and a few other bits of data. Be careful not to remove Woody ad snippets by deleting it from the Plugins menu unless you want this to happen.

How to remove plugin via ftp client?

You have to delete the folder with the plugin, which is located here: wp-content/plugins/insert-php

This will not clear the plugin data from the database. You have to remove the plugin through the admin panel with the “Full Uninstall” option enabled in order to completely clear the plugin data.

Will I lose my snippets if I change the theme or upgrade WordPress?

No, the snippets are stored in the WordPress database and are independent of the theme and unaffected by WordPress upgrades.

Does plugin work with multisite?

The plugin doesn’t support multi-sites.

We will definitely add multisite support in the future. You can speed up this process by leaving a request on our support forum.


Leave a Reply

Your email address will not be published.