WPCodeBox Documentation
< All Topics

Add PHP Code to your WordPress site

Adding PHP code snippets to your WordPress site is easy with WPCodeBox. To create a new PHP snippet, press the “New Snippet” button in the left pane, and you will see a list of fields to fill out (title, description, how to run) as well as an interactive text editor for all languages including JavaScript or HTML coding along with other helpful features like highlighting errors before saving so that they don't creep up later!

The default Code Type selection will be PHP, so if you want to add PHP code, you won't have to change the code type. 

PHP code starts with <?php. When pasting code, make sure to always include the <?php tag.

To save any changes just click "Save" above the editor, or press Ctrl + S (Command + S) on Mac.

linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram