mycred_sale_history_row

Codex / mycred/content / Filters / mycred_sale_history_row

Navigation:

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

Description

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()

Parameters

  • 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

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

<?php
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