function __construct($settings) { self::$settings = $settings; add_action('admin_notices', array($this, 'show')); }