Skip to content

Instantly share code, notes, and snippets.

@gabrielmerovingi
Last active April 11, 2017 18:50
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/5099591b3d6638e1a231e2c0fabee2df to your computer and use it in GitHub Desktop.
Save gabrielmerovingi/5099591b3d6638e1a231e2c0fabee2df to your computer and use it in GitHub Desktop.
Available action hooks for the buyCRED checkout page. Will be replaced as of 1.8
/**
* Checkout Header
* @version 1.0
*/
function mycred_pro_buycred_checkout_header() {
echo '<link rel="stylesheet" href="http://yourwebsite.com/cssfile.css" type="text/css" media="all" />';
}
add_action( 'mycred_buycred_page_header', 'mycred_pro_buycred_checkout_header' );
/**
* Checkout After Header
* @version 1.0
*/
function mycred_pro_buycred_checkout_after_header() {
// Content to show after the page title but before the page content
}
add_action( 'mycred_buycred_page_top', 'mycred_pro_buycred_checkout_after_header' );
/**
* Checkout Footer
* @version 1.0
*/
function mycred_pro_buycred_checkout_footer() {
// Content to show in the bottom of the page
}
add_action( 'mycred_buycred_page_footer', 'mycred_pro_buycred_checkout_footer' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment