Plugin Directory

PHP Code for posts

Add PHP code to your WordPress posts, pages, custom post types and even sidebars using shortcodes

You mentioned a variable array to assign variables to for use between snippets, how do I do this?

To assign variables to the array, use the following code:

global $PHPPC;
  $PHPPC->$_vars["myvaridentifier"] = $myvar;

and to read a variable from the array use this code:

global $PHPPC;
    $myvar = $PHPPC->$_vars["myvaridentifer"];

Simples!

No other questions yet!

:)

Requires: 3.3.1 or higher
Compatible up to: 3.4.2
Last Updated: 2012-8-23
Downloads: 13,097

Ratings

5 stars
5 out of 5 stars

Support

0 of 2 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

2 people say it works.
0 people say it's broken.

100,2,2
100,3,3
100,1,1
100,2,2