function __construct() { self::$instance = $this; $this->options = $this->get_option(); $this->plugin_basename = staticpress_s3::plugin_basename(); add_action('StaticPress::options_save', array($this, 'options_save')); add_action('StaticPress::options_page', array($this, 'options_page')); }
function __construct($options) { self::$instance = $this; $this->options = $options; add_action('StaticPress::file_put', array($this, 'file_put'), 10, 2); }