Use the code LIFETIME at checkout and get 20% off our limited-time lifetime plans. Offer available until September 21.
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.

Next How to download a code snippet from the Code Snippet Repository