Insert PHP Version 1.3


Run PHP code inserted into WordPress posts and pages.

The PHP code is between special tags (« [insert_php] » instead of « <?php » and « [/insert_php] » instead of « ?> »).

The PHP code runs as the page is sent to the browser. Output of the PHP code is published directly onto the post or page where the PHP code between the special tags is located.

The code between the tags must be complete in and of itself. References to variables or code blocks outside the area between the tags will fail. See the « more information » URL for an explanation of this.

Examples of use:

  • Publish local time (users’ computer clock settings being unreliable).

  • Insert output of a PHP script, or just to run a script whether or not it generates output.

  • Check/manipulate cookies or other actions that JavaScript can accomplish when using JavaScript is undesirable.

More information about the Insert PHP plugin can be found here:

Page officielle :