AEMexporterwoocsvExportAdmin

Created by PhpStorm.

Defined (1)

The class is defined in the following location(s).

/export/include/woocsvExportAdmin.php  
  1. class woocsvExportAdmin 
  2.  
  3.  
  4. public function menu () 
  5. //export sub page 
  6. add_submenu_page( 'woocsv_import', 'Export', __('Export', 'woocommerce-csvimport'), 'manage_woocommerce', 'woocsv-export', array($this, 'content')); 
  7.  
  8.  
  9. public function content () 
  10. global $wpdb; 
  11.  
  12. if (isset($_POST[ 'action' ]) && $_POST[ 'action' ] == 'export') { 
  13. delete_option('woocsv_export_current'); 
  14. //$this->export(); 
  15.  
  16. $woocsv_export_current = get_option( 'woocsv_export_current' ); 
  17.  
  18. $min = 0; 
  19. $max = $wpdb->get_var("select count(*) from $wpdb->posts where post_type = 'product'"); 
  20.  
  21. $upload_dir = wp_upload_dir(); 
  22. $files = glob( $upload_dir[ 'basedir' ] . '/woocsv_export_*' ); 
  23. rsort($files); 
  24.  
  25. include WOOCSV_PLUGIN_PATH . '/export/partials/main.php'; 
  26.