function __construct($options = null) { if (is_a($options, 'BJLL_Options')) { self::$_options = $options; } add_action('wp', array($this, 'init'), 99); // run this as late as possible }