mirror of
https://gh.wpcy.net/https://github.com/mainwp/Code-Snippets-Functions.git
synced 2026-05-04 12:22:24 +08:00
https://github.com/easydigitaldownloads/library/blob/master/_checkout/remove-discount-field.html
4 lines
167 B
Text
4 lines
167 B
Text
function pw_edd_remove_discount_field() {
|
|
remove_action( 'edd_checkout_form_top', 'edd_discount_field', -1 );
|
|
}
|
|
add_action( 'init', 'pw_edd_remove_discount_field' );
|