Skip to content

Instantly share code, notes, and snippets.

@thadallender
Created February 14, 2016 16:13
Show Gist options
  • Save thadallender/916a7f9b64cb53c9f731 to your computer and use it in GitHub Desktop.
Save thadallender/916a7f9b64cb53c9f731 to your computer and use it in GitHub Desktop.
Changes Sell Media's terms of service label on Checkout page.
<?php
/**
* Add the following function to your own functionality plugin
* or add it to your theme's functions.php file.
* Change any of the text inside the return value.
*/
function my_sell_media_tos_label() {
return 'Hey this is my custom text. Please agree to our <a href="javascript:void(0);" class="sell-media-empty-dialog-trigger">terms of service</a>.';
}
add_filter( 'sell_media_tos_label', 'my_sell_media_tos_label' )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment