mirror of
https://gh.wpcy.net/https://github.com/mainwp/Code-Snippets-Functions.git
synced 2026-05-03 12:12:25 +08:00
https://github.com/easydigitaldownloads/library/blob/master/_downloads/remove-free-text.html
7 lines
224 B
Text
7 lines
224 B
Text
function pw_edd_remove_free( $form, $args ) {
|
|
|
|
$form = str_replace( 'Free – Add to Cart', 'Add to Cart' , $form );
|
|
|
|
return $form;
|
|
}
|
|
add_filter( 'edd_purchase_download_form', 'pw_edd_remove_free', 10, 2 );
|