Filter to provide icon to COD. Closes #1831

This commit is contained in:
Coen Jacobs 2012-11-26 12:48:19 +01:00
parent 71459fe75c
commit 930a36e90c
1 changed files with 2 additions and 1 deletions

View File

@ -23,8 +23,9 @@ class WC_COD extends WC_Payment_Gateway {
*/
function __construct() {
$this->id = 'cod';
$this->icon = apply_filters('woocommerce_cod_icon', '');
$this->method_title = __( 'Cash on Delivery', 'woocommerce' );
$this->has_fields = false;
$this->has_fields = false;
// Load the form fields.
$this->init_form_fields();