mycred_sell_this_button

Description

This filter allows you to make adjustments to the button the Sell Content add-on renders for users who have not purchased access to content set for sale. You can for example use this filter to adjust the button elements attributes or customize the button label.

Available since version 1.7

Parameters

Param Type Required Description
$button string Yes

The HTML button element.

$post obj No

The WordPress post object that this button is being rendered for.

$setup array No

An associated array of the point type setup. This is the values set in the Sell Content add-ons settings for a particular point type. Note that if multiple point types are allowed to be used as payment, this settings might differ.

$mycred obj No

The myCRED_Settings object currently being used.

Used By

Package Prio. Description
Not used by any built-in package.

Examples

Example 1: Insert an icon into the buttons label.