Created
July 8, 2014 15:52
-
-
Save JiveDig/45976d45b178b5ec1736 to your computer and use it in GitHub Desktop.
Add heading to EDD download history and purchase history shortcodes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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