This function will return all available payment buttons that a user can use, in order to pay for a posts content. This function will check if the user can afford to pay, are not excluded. This function will however not check if the post is set for sale. This needs to be done before using this function.
(bool | string) Returns a string containing button elements for each point type that can be used by the user. Else returns FALSE
.
Param | Type | Required | Description | |
---|---|---|---|---|
function mycred_sell_content_payment_buttons( |
||||
$user_id |
int | Yes | The users numeric ID. |
|
$post_id |
int | Yes | The post object ID. |
|
) { ... } |