Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gabrielmerovingi/63c07a3ae95dea4403333894c2342179 to your computer and use it in GitHub Desktop.
Save gabrielmerovingi/63c07a3ae95dea4403333894c2342179 to your computer and use it in GitHub Desktop.
Adjust the button rendered by the Sell Content add-on.
/**
* Adjust Sell Content Button
* @version 1.0
*/
function mycred_pro_adjust_sell_content_button( $button, $post, $setup, $mycred ) {
return '<button type="button" class="mycred-buy-this-content-button ' . $setup['button_classes'] . '" data-pid="' . $post->ID . '" data-type="' . $mycred->cred_id . '"><i class="fa fa-download" aria-hidden="true"></i></button>';
}
add_filter( 'mycred_sell_this_button', 'mycred_pro_adjust_sell_content_button', 10, 4 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment