Commit Graph

10 Commits

Author SHA1 Message Date
Peter Fabian ada11aa4e2 Hid import/export from menu when having insufficient capabilities
- Made AJAX reply more verbose in case of insufficient capabilities.
2018-04-04 15:06:13 +02:00
Peter Fabian 1ef47120a8 Link product import/export to import/export capabilities
- show Import/Export Products buttons only if the user has import/export capability
- show Woo importer/exporter under Tools only if user has import/export capability
- require both edit_products and import/export to run those actions
-
2018-04-04 10:30:49 +02:00
Rodrigo Primo 23b69eba53 Use phpcbf to fix coding standard violations in includes/admin
After using phpcbf to fix the coding standard violations, I did some manual adjustments to the changes, especially in poorly indented files.
2018-03-05 16:21:35 -03:00
Mike Jolley 5aee9f973c Append timestamp to filename 2018-01-02 13:29:23 +00:00
Mike Jolley 46c51bb3a6 Allow filename to be set from javascript 2018-01-02 13:16:43 +00:00
Luciano Amodio 1b42973b75 Add export ajax query args and filename filter hooks
`woocommerce_export_get_ajax_query_args` let you pass args to ajax actions
`woocommerce_{$this->export_type}_export_get_filename` let you change the filename
2017-12-20 21:20:02 +01:00
Mike Jolley acbd4295f9 phpcs 2017-12-07 12:35:13 +00:00
Mike Jolley 91887b918f phpcs 2017-12-07 12:31:30 +00:00
Mike Jolley bf2979f68d Revert change - export directory contains logic only, not admin 2017-05-17 11:50:55 +01:00
Mike Jolley 8a48c7d388 Made exporter and importer screens, classes and directories consistent
Once merged, @claudiosanches @claudiulodro, we should work on
https://github.com/woocommerce/woocommerce/tree/feature/product-csv-impo
rt-export branch going forward and get this merged into it.
2017-05-17 11:24:27 +01:00