Linux 软件免费装
Banner图

Woody code snippets - Insert Header Footer Code, AdSense Ads

开发者 WillBontrager
webcraftic
creativemotion
alexkovalevv
更新时间 2024年6月14日 06:01
捐献地址: 去捐款
PHP版本: 7.0 及以上
WordPress版本: 6.2
版权: GPLv2 or later
版权网址: 版权信息

标签

adsense shortcode woocommerce header code snippets

下载

1.3 2.2.4 2.2.9 2.3.1 2.3.10 2.4.4 2.4.10 2.4.2 2.1.91 2.4.8 2.4.9 2.0.4 2.2.7 2.4.5 2.4.6 2.0.6 2.4.7

详情介绍:

Need professional support? Get starting FREE support Get starting PREMIUM support - 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 Code 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? Need premium features? Get Premium version 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! https://youtu.be/FNoNsl_jy2k All Plugin Features: Where Can You Place a Snippet Automatically? All website: Insert Headers and Footers on all pages: Insert to Posts, pages, custom posts: Insert to Categories, archives, tags, taxonomy: Insert to Woocommerce pages: (Premium) What Are Conditional Logic Options to Show a Snippet? User: Recommended our plugins NEED SUPPORT, WE GOT YOU COVERED We provide free support for this plugin. If you are pushed with a problem, just create a new ticket. We will definitely help you! 1. Get starting free support 2. Documentation We are very need for your help with translating Woody Code 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! Setting options Code Editor Geolocation IP geolocation database (Webnet77 or MaxMind) - Select IP geolocation database Use this plugin with care! ATTENTION! Check your php scripts before inserting on your site. If you don't understand how the php script you are using works, try to avoid using it. Using unverified or outdated php scripts can damage the security of your site! Using the plugin on multisites can be dangerous as it will allow all administrators to insert php, js code. If you cannot control the work of administrators, we recommend that you do not use this plugin for security reasons. We are constantly working to improve the security of the plugin, but unfortunately we cannot check the code scripts you use that may violate the security of your site! 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 Code 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 Code Snippets. This name is more suitable for new and powerful plugin features. More information about the Insert PHP plugin can be found here: http://www.willmaster.com/software/WPplugins/go/iphphome_iphplugin

安装:

  1. Upload the plugin files to the /wp-content/plugins/plugin-name directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the 'Plugins' screen in WordPress
  3. Use the PHP Snippets -> Add snippet, to create a new snippet

屏幕截图:

  • Edit php snippet
  • Code revisions
  • 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
  • Custom shortcode name

常见问题:

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.

  1. Go to the safe mode by this link: http://your-site-name.dev/wp-admin/?wbcr-php-snippets-safe-mode
  2. Edit the snippet in which you made a mistake;
  3. 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 Code 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 Code 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.

更新日志:

2.4.10 2.4.9 2.4.8 2.4.7 2.4.6 (31.05.2022) 2.4.4 (23.03.2022) 2.4.4 (23.03.2022) 2.4.3 2.4.2 2.4.1 2.4.0 2.3.10 2.3.9 2.3.8 2.3.7 2.3.6 2.3.5 2.3.2 2.3.1 (26.11.2019) 2.3.0 (19.11.2019) 2.2.9 (16.09.2019) 2.2.8 (13.09.2019) 2.2.7 2.2.6 2.2.5 2.2.4 2.2.2 2.2.1 2.1.91 2.1.9 2.1.7 2.1.6 2.1.5 2.1.4 2.1.3 2.1.2 2.0.6 2.0.4 2.0.2 Fixed a bug where you do not have enough permissions to view the page. 2.0.1 Attention! This new 2.0 plugin version, we added the ability to insert php code using snippets. This is a more convenient and secure way than using shortcodes [insert_php] code execute [/ insert_php]. However, for compatibility reasons, we left support for [insert_php] shortcodes, but we will depreciate them in the next versions of the plugin. We strongly recommend you to transfer your php code to snippets and call them in your posts/pages and widgets using [wbcr_php_snippet id = "000"] shortcodes. 1.3 Fixed issue with str_replace() when haystack contained a slash character. 1.2 Changed handling of content. 1.1 Bug fix. Added ob_end_flush(); and changed variable names to remove opportunity for conflict with user-provided PHP code. 1.0 First public distribution version.