Skip to main content
added 28 characters in body
Source Link
Scott
  • 12.3k
  • 15
  • 68
  • 99

Try this instead:

$gloabl $myxclass;
$myxclass = new Xwidget();
add_action( 'xxx_followers', array(&$myxclass, "cron_addB" ) );

or

add_action('xxx_followers', "init_xclass_and_cron");
function init_xclass_and_cron() {
    $myxclass = new Xwidget();
    $myxclass->cron_addB();
}

Try this instead:

$myxclass = new Xwidget();
add_action( 'xxx_followers', array(&$myxclass, "cron_addB" ) );

Try this instead:

$gloabl $myxclass;
$myxclass = new Xwidget();
add_action( 'xxx_followers', array(&$myxclass, "cron_addB" ) );

or

add_action('xxx_followers', "init_xclass_and_cron");
function init_xclass_and_cron() {
    $myxclass = new Xwidget();
    $myxclass->cron_addB();
}
Source Link
Scott
  • 12.3k
  • 15
  • 68
  • 99

Try this instead:

$myxclass = new Xwidget();
add_action( 'xxx_followers', array(&$myxclass, "cron_addB" ) );