Use $this not static method

This commit is contained in:
Mike Jolley 2019-05-14 23:09:02 +01:00
parent 45102746e6
commit 91f68121cd
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ class WC_Admin_Events {
* Cron event handlers. * Cron event handlers.
*/ */
public function init() { public function init() {
add_action( 'wc_admin_daily', array( __CLASS__, 'do_wc_admin_daily' ) ); add_action( 'wc_admin_daily', array( $this, 'do_wc_admin_daily' ) );
} }
/** /**