mycred_post_is_for_sale
Description
This filter allows you to adjust the results of checking if a given post is set for sale using the Sell Content add-on. This only checks if the post is set for sale based on your settings. It does not check if a user has paid for the content!
Available since version 1.7
Parameters
Param | Type | Required | Description |
---|---|---|---|
$results |
bool | Yes | Returns TRUE if the post is for sale or FALSE. |
$post |
obj | No | The post object being checked. |
$settings |
array | No | The Sell Content add-on settings array. |
Examples
Example 1: Set all content for sale that are authored by the user with the ID 123.