Plugin Directory

Changeset 1368435


Ignore:
Timestamp:
03/10/2016 04:44:20 PM (10 years ago)
Author:
The.Missing.Code
Message:

change to the readme text

Location:
php-code-for-posts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • php-code-for-posts/tags/2.0.4/readme.txt

    r1368424 r1368435  
    2222The shortcodes can be used to also display plain HTML content, allowing you to add in iframe, objects, areas and other tags that are removed by the post editor
    2323
    24 The plugin also contains a variable array which you can add variables to for use between snippets called $_var and is available though the global variable $PHPPC which is an object, so its $PHPPC->_vars[]
     24The plugin also contains a variable array which you can add variables to for use between snippets called $_var and is available though the global variable $PHPPC which is an object, so its $PHPPC::$_vars[]
    2525
    2626= New for 1.1.1 =
     
    4747To assign variables to the array, use the following code:
    4848` global $PHPPC;
    49   $PHPPC->$_vars["myvaridentifier"] = $myvar;`
     49  $PHPPC::$_vars["myvaridentifier"] = $myvar;`
    5050
    5151and to read a variable from the array use this code:
    5252` global $PHPPC;
    53     $myvar = $PHPPC->$_vars["myvaridentifer"];`
     53    $myvar = $PHPPC::$_vars["myvaridentifer"];`
    5454Simples!
    5555
  • php-code-for-posts/trunk/readme.txt

    r1368424 r1368435  
    2222The shortcodes can be used to also display plain HTML content, allowing you to add in iframe, objects, areas and other tags that are removed by the post editor
    2323
    24 The plugin also contains a variable array which you can add variables to for use between snippets called $_var and is available though the global variable $PHPPC which is an object, so its $PHPPC->_vars[]
     24The plugin also contains a variable array which you can add variables to for use between snippets called $_var and is available though the global variable $PHPPC which is an object, so its $PHPPC::$_vars[]
    2525
    2626= New for 1.1.1 =
     
    4747To assign variables to the array, use the following code:
    4848` global $PHPPC;
    49   $PHPPC->$_vars["myvaridentifier"] = $myvar;`
     49  $PHPPC::$_vars["myvaridentifier"] = $myvar;`
    5050
    5151and to read a variable from the array use this code:
    5252` global $PHPPC;
    53     $myvar = $PHPPC->$_vars["myvaridentifer"];`
     53    $myvar = $PHPPC::$_vars["myvaridentifer"];`
    5454Simples!
    5555
Note: See TracChangeset for help on using the changeset viewer.