Skip to content

Instantly share code, notes, and snippets.

View isaumya's full-sized avatar
👨‍💻
Think Twice, Code Once

Saumya Majumder isaumya

👨‍💻
Think Twice, Code Once
View GitHub Profile
@isaumya
isaumya / functions.php
Created October 3, 2015 08:29
Showing EDD Review Post link
/*Add option to post review for edd purchased items - TH */
add_action( 'edd_purchase_history_header_after', '__edd_post_review_th', 12 );
function __edd_post_review_th() {
echo '<th class="edd-post-review-th">'. __('Reviews', 'edd') .'</th>';
} // This part is working fine
/*Add option to post review for edd purchased items - TD */
add_action( 'edd_purchase_history_row_end', '__edd_post_review_td', 12, 2 );
function __edd_post_review_td( $payment_id, $purchase_data ) {
// As I'm getting payment id and not post id so I have no idea how to fetch