コード例 #1
0
 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');
     });
 }
コード例 #2
0
 public function __construct($wpdb)
 {
     parent::__construct($wpdb);
     $this->db = new Database($wpdb);
 }
コード例 #3
0
 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);
 }