Category: Filters

Codex / Filters

When using Events Manager, you can select if bookings should be approved on payment or if admin approval is required. In case you select admin approval, you can use this filter to override this and approve the booking when paid using points.

Description This filter allows you to adjust the price of a content that has been set for sale using the Sell Content add-on. If you are looking to customize who needs to pay for the content, consider using the mycred_user_has_paid_for_content filter instead. Available since version 1.7 Parameters Param Type Required Description $price int or float Yes [...]

mycred_has_entry

Package: mycred/log Category: Filters

This filter allows you to made adjustments when myCRED checks for records in the log. Mainly used to enforce rules or to make sure entries are unique.

Description This filter allows you to adjust or add columns that are shown when viewing the log in the admin area for a specific point type. Available since version 1.7 Parameters Param Type Required Description $columns array Yes An array of column IDs and column labels. $class obj No Either the log module class object if [...]

This filter allows you to adjust the available times a lottery can be scheduled using the 12 hour system. This filter is used by the drop-down menus for the lottery schedules.

By default, myCRED allows you to let purchases expire after a certain number of hours. This filter lets you change this calculation from hours to any other time measurements.

This filter allows you to adjust the check myCRED makes to see if a user has paid for a content that is set for sale using the Sell Content add-on. You can use this filter to give access to specific users for specific posts without them having to pay.