• Resolved Lave

    (@lavelight)


    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 host

    Website error

    Parse error: syntax error, unexpected T_STATIC in

    This 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.