Skip to main content

Try:

<?php
$class = new MyClass();

class MyClass {
    public function MyClass() {
       add_action('init', array(&$this$this, 'core'));
    }
    public static function core() {
        echo "I never get thisto far...";here";
    }
}
?>

Try:

<?php
$class = new MyClass();

class MyClass {
    public function MyClass() {
       add_action('init', array(&$this, 'core'));
    }
    public static function core() {
        echo "I never get this far...";
    }
}
?>

Try:

<?php
$class = new MyClass();

class MyClass {
    public function MyClass() {
       add_action('init', array($this, 'core'));
    }
    public static function core() {
        echo "I never get to here";
    }
}
?>

Try:

<?php
$class = new MyClass();

class MyClass {
    public static function MyClass() {
       add_action('init', array(&$this, 'core'));
    }
    public static function core() {
        echo "I never get this far...";
    }
}
?>

Try:

<?php
$class = new MyClass();

class MyClass {
    public static function MyClass() {
       add_action('init', array(&$this, 'core'));
    }
    public static function core() {
        echo "I never get this far...";
    }
}
?>

Try:

<?php
$class = new MyClass();

class MyClass {
    public function MyClass() {
       add_action('init', array(&$this, 'core'));
    }
    public static function core() {
        echo "I never get this far...";
    }
}
?>
Source Link
Andre
  • 56
  • 1

Try:

<?php
$class = new MyClass();

class MyClass {
    public static function MyClass() {
       add_action('init', array(&$this, 'core'));
    }
    public static function core() {
        echo "I never get this far...";
    }
}
?>