Codex / mycred/content / Filters / mycred_sale_history_row


  1. Description
  2. Used By
  3. Parameters
  4. Example


This filter allows you to adjust and/or add information to each row presented via the mycred_sale_history shortcode.

Used By

  • Class: myCRED_Sell_Content_Module Method: render_sales_history()


  • row (string)
    The row string. myCRED will insert the post title with a link and the date of the purchase by default.
  • log_entry (object)
    An log entry object containing the time, amount paid, user id, post id, author id, log entry and reference.


Example 1: Append the post type to the end of each row.

add_filter( 'mycred_sale_history_row', 'my_custom_tags', 10, 2 );
function my_custom_tags( $row, $entry )
	return $row . ' Post Type: ' . get_post_type( $entry->ref_id );

Last edited June 26, 2016