Codex / mycred/transfer / Shortcodes / mycred_pending_transfers


This shortcode will render a table listing all the pending incoming our outgoing transfers for the user viewing the shortcode.

Requires the Transfer add-on to be enabled along with the Transfer Plus add-on being installed and enabled.

Available since version 1.0

Shortcode Attributes

Attribute Type Required Default Description
user_id int No current Option to show pending transfers for a particular user instead of the current user viewing the shortcode.
dir string No out Option to select which direction to show. You can select to show either pending incoming transfers (in) or pending outgoing transfers (out).
ctype string No MYCRED_DEFAULT_TYPE_KEY The point type to show fees for. Should not be used if you only have one point type installed. If you have multiple point types and users are not allowed to transfer the default point type but your custom point type, this attribute must be used!
nothing string No "No pending transfers found" Message to show users when they do not have any pending transfers.

CSS Styling

// Wrapper
div.mycred-pending-transfers { }

// The Table
div.mycred-pending-transfers form table { }

// Columns
div.mycred-pending-transfers table th.transfer { }
div.mycred-pending-transfers table th.ctype { }
div.mycred-pending-transfers table { }
div.mycred-pending-transfers table th.from { }
div.mycred-pending-transfers table th.fee { }
div.mycred-pending-transfers table { }
div.mycred-pending-transfers table th.payout { }


Example 1: Default usage (showing outgoing transfers).


Example 2: Show pending incoming transfers instead.

[mycred_pending_transfers dir="in"]
Pending Transfers

Last edited June 23, 2016