public function __construct($wpdb) { parent::__construct($wpdb); $this->db = new Database($wpdb); // Dequeue scripts, but they'll be requeued in self::run() if required. add_action('wp_enqueue_scripts', function () { wp_dequeue_script('tabulate-scripts'); }); }
public function __construct($wpdb) { parent::__construct($wpdb); $this->db = new Database($wpdb); }
protected function send_file($ext, $mime, $content, $download_name = false) { $download_name = date('Y-m-d') . '_' . $this->table->get_name(); parent::send_file($ext, $mime, $content, $download_name); }