Skip to content

Instantly share code, notes, and snippets.

View rbsmidt's full-sized avatar

Rasmus Boje Smidt rbsmidt

View GitHub Profile
function wordimpress_preview_woo_emails() {
if ( is_admin() ) {
$default_path = WC()->plugin_path() . '/templates/';
$plugin_path = plugin_dir_path() . '';
$files = scandir( $default_path . 'emails' );
/**