Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save AshlinRejo/45b0163ec3071f9584d91fcb22d95604 to your computer and use it in GitHub Desktop.
Save AshlinRejo/45b0163ec3071f9584d91fcb22d95604 to your computer and use it in GitHub Desktop.
Discount rules v2: Support style attribute in span tags
add_filter('advanced_woo_discount_rules_allowed_html_elements_and_attributes', function($allowed_html) {
$allowed_html['span'] = array('style' => array(), 'class' => array());
return $allowed_html;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment