Skip to content

Instantly share code, notes, and snippets.

@JiveDig
Created July 8, 2014 15:52
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 JiveDig/45976d45b178b5ec1736 to your computer and use it in GitHub Desktop.
Save JiveDig/45976d45b178b5ec1736 to your computer and use it in GitHub Desktop.
Add heading to EDD download history and purchase history shortcodes
<?php
// Do [download_history] heading
add_action( 'edd_before_download_history', 'richr_do_download_history_before' );
function richr_do_download_history_before() {
echo '<h2>Download your files</h2>';
}
// Do [purchase_history] heading
add_action( 'edd_purchase_history_header_before', 'richr_do_purchase_history_before' );
function richr_do_purchase_history_before() {
echo '<h2>View your purchase history</h2>';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment