[Plugin: Shortcode Exec PHP] Get variables (not push) via Shortcode
-
Is there a possibility to get a variable I’ve stored in the php-plugin? Like [shortcode arg=”value”] …but vice-versa. For example: I have a shortcode-function called [example]
and the following php-script:$variable1 = "text1"; $variable2 = "text2"; return $variable1 ." ". $variable2;No problem, if I call the [example]-Shortcode, it will write “text1 text2” – BUT I’d like to have only the first variable.
The reason of my question is simple: I do use different shortcodes for those who are guests, and those whoe are loggedin. Most of the php-script is the same and I have many (!) php-scripts, so it’s better not to duplicate the whole scripts and styling them every time again. I hope you got my ugly english π
Regards
Sebastian
The topic ‘[Plugin: Shortcode Exec PHP] Get variables (not push) via Shortcode’ is closed to new replies.