mycred_sell_content_payment_buttons

Description

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.

This function is only available if the Sell Content add-on is enabled.

Available since version 1.7

Returns

(bool | string) Returns a string containing button elements for each point type that can be used by the user. Else returns FALSE.

Parameters

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.

) { ... }

Examples

No example found.