Chapters

Category: mycred/content

A compilation of items related to Content Sales via the Sell Content add-on.

mycred_content_buyer_avatars

This shortcode allows you to show the avatars of buyers of the content.

Continue Reading

mycred_content_buyer_count

This shortcode renders the total number of users that have purchased the content. Must be used inside the loop, either in the content field or in your theme’s template files.

Continue Reading

mycred_content_purchase_has_expired

This function will check if a content payment has expired or not.

Continue Reading

mycred_content_sale_count

This shortcode renders the total number of times the content has been purchased. Must be used inside the loop, either in the content field or in your theme’s template files.

Continue Reading

mycred_get_content_buyers_count

This function returns the total number of unique users that have purchased a given post.

Continue Reading

mycred_get_content_price

This filter allows you to adjust the price of a given content.

Continue Reading

mycred_get_content_price

This function returns the set price for a post that has been set for sale using the Sell Content add-on.

Continue Reading

mycred_get_content_sales_count

This function returns the total number of times a particular posts content has been purchased.

Continue Reading

mycred_post_is_for_sale

This filter allows you to adjust the results of checking if a given post is set for sale using the Sell Content add-on.

Continue Reading

mycred_post_is_for_sale

This function checks if a specific post is set for sale in the Sell Content add-on.

Continue Reading

mycred_post_type_for_sale

This function checks if a given post type is set for sale in the Sell Content settings.

Continue Reading

mycred_sales_history

This shortcode will render a users content purchase history via the Sell Content add-on. As of version 1.7 the shortcode will render purchases in a boostrap ready table. You can select to filter results based on point type, set the number of entries you want to show and set the order.

Continue Reading

mycred_sell_content_new_purchase

This function will attempt to charge a given user for a piece of content that has been set for sale using the Sell Content add-on.

Continue Reading

mycred_sell_content_payment_buttons

This function will return all available payment buttons that a user can use, in order to pay for a posts content.

Continue Reading

mycred_sell_content_post_id

This function attempts to get the current posts ID.

Continue Reading

mycred_sell_content_priority

This filter allows you to change the priority of the Sell Content add-ons content filtering.

Continue Reading

mycred_sell_exp_title

This filter lets your change the title used to mark the expiration length measurement.

Continue Reading

mycred_sell_expire_calc

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.

Continue Reading

mycred_sell_this

By default, the Sell Content add-on sells access to the entire post content field, but this shortcode allows you to sell just parts of the content, leaving the rest available for everyone to see.

Continue Reading

mycred_sell_this_ajax

While you can sell the entire content of a post or page (or any other custom post type), you can use this shortcode to sell parts of the content allowing you to show "teasers" in the remaining content.

Continue Reading

mycred_sell_this_button

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.

Continue Reading

mycred_sell_this_label

This filter allows you to rename the "myCRED Sell This" metabox that the Sell Content add-on provides for your posts and pages.

Continue Reading

mycred_user_has_paid_for_content

This filter allows you to indicate if the current user has paid / not paid for a particular content.

Continue Reading

mycred_user_paid_for_content

This function checks if a given user has a valid and active payment for a specific post that is set for sale.

Continue Reading