Skip to content

How to Move PHP Code from the Old Plugin Format to Woody Snippets

In older Insert PHP setups, you wrapped PHP code with shortcodes [insert_php]php code[/insert_php]. In Woody Code Snippets, create a dedicated PHP snippet and place it with a shortcode like [wbcr_php_snippet id="xx"]. Use this shortcode instead of [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.