[php plugin] How to fix static function
-
Hi everyone π
I writing plugin and i have some problems.
Working on localhost – xampp and here check my plugin.
Plugin works have 100% correct on my localhost.
Problem started when i transfer file on real hostWebsite error
Parse error: syntax error, unexpected T_STATIC inThis is line:
if(get_current_screen()->id == 'toplevel_page_'.static::$plugin_id){up script
class blabla{ private static $plugin_id = 'blablabla';Host use php 5.4.21
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘[php plugin] How to fix static function’ is closed to new replies.