filter is_enabled boolean Closes #2535.

This commit is contained in:
Mike Jolley 2013-02-27 10:10:36 +00:00
parent f7de23f199
commit b8a92318e0
1 changed files with 4 additions and 3 deletions

View File

@ -268,8 +268,9 @@ abstract class WC_Email extends WC_Settings_API {
* @return bool
*/
function is_enabled() {
if ( $this->enabled == "yes" )
return true;
$enabled = $this->enabled == "yes" ? true : false;
return apply_filters( 'woocommerce_email_enabled_' . $this->id, $enabled, $this->object );
}
/**