This is a utility method but you have to override if you don't like insert name and class name parameters. In
you own class just use:
public static function init() {
return parent::init( self::PREFERENCES_NAME, __CLASS__ );
}
Or, if you like check the prefernces version
public static function init() {
return parent::init( self::PREFERENCES_NAME, __CLASS__, LAST_VERSION );
}
If you wish store preferences for each user use:
public static function init() {
$user_id = get_current_user_id();
return parent::init( self::PREFERENCES_NAME, __CLASS__, LAST_VERSION, $user_id );
}