Skip to content

Commit cc9e784

Browse files
Create preview values trait (#741)
1 parent 06a700a commit cc9e784

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
3+
namespace SkyVerge\WooCommerce\PluginFramework\v5_15_5\Emails\Traits;
4+
5+
/**
6+
* Adds improved support for the experimental "Email Improvements" feature, by populating any missing properties
7+
* with default/placeholder values.
8+
*
9+
* {@see \Automattic\WooCommerce\Internal\Admin\EmailPreview\EmailPreview::set_email_type()}
10+
*/
11+
trait HasEmailPreviewValuesTrait
12+
{
13+
/**
14+
* Sets "Preview" values on the email object.
15+
*/
16+
abstract public function setPreviewValues() : void;
17+
}

0 commit comments

Comments
 (0)