Limited time sale! Use the code LIFETIME at checkout and get 20% off our limited-time lifetime plans.
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
Copyright © 2022 WPCodeBox SRL. All other trademarks are the property of their respective owners
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram