A free points management plugin for WordPress.
myCRED Logo
myCRED Logo
  • Membership New
  • Chapters
    • Chapter I – Introduction
    • Chapter II – Getting Started
    • Chapter III – Add-ons
    • Chapter IV – Premium Add-ons
    • Chapter V – For Developers
    • Chapter VI – Reference Guides
  • Categories
    • Actions
    • Classes
    • Constants
    • Filters
    • Functions
    • Objects
    • Shortcodes
    • Hooks
    • Template Tags
  • Packages
    • mycred/api
    • mycred/badge
    • mycred/balance
    • mycred/banking
    • mycred/content
    • mycred/core
    • mycred/coupon
    • mycred/email
    • mycred/game
    • mycred/log
    • mycred/notice
    • mycred/payment
    • mycred/purchase
    • mycred/rank
    • mycred/transfer
  • Store
  • Download
    Packages
    Filter by package
    1. mycred/api
    2. mycred/badge
    3. mycred/balance
    4. mycred/banking
    5. mycred/buddypress
    6. mycred/content
    7. mycred/core
    8. mycred/coupon
    9. mycred/email
    10. mycred/game
    11. mycred/hook
    12. mycred/log
    13. mycred/notice
    14. mycred/payment
    15. mycred/purchase
    16. mycred/rank
    17. mycred/stats
    18. mycred/transfer
    19. mycred/twilio
    Categories
    Filter by category
    1. Actions
    2. Classes
    3. Filters
    4. Functions
    5. Hooks
    6. Objects
    7. Shortcodes
    8. Template Tags
    Chapters
    Documentation
    1. Chapter I - Introduction
    2. Chapter II - Getting Started
    3. Chapter III - Add-ons
    4. Chapter IV - Premium Add-ons
    5. Chapter V - For Developers
    6. Chapter VI - Reference Guides
Package: mycred/content
A compilation of items related to Content Sales via the Sell Content add-on.

Codex / mycred/content

mycred_content_buyer_avatarsShortcode

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

mycred_content_buyer_countShortcode

This shortcode renders the total number of users that have purchased the content.

mycred_content_purchase_has_expiredFunction

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

mycred_content_sale_countShortcode

This shortcode renders the total number of times the content has been purchased.

mycred_get_content_buyers_countFunction

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

mycred_get_content_priceFilter

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

mycred_get_content_priceFunction

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

mycred_get_content_sales_countFunction

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

mycred_post_is_for_saleFilter

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

mycred_post_is_for_saleFunction

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

mycred_post_type_for_saleFunction

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

mycred_sales_historyShortcode

This shortcode returns the current users purchase history of content set for sale on your site using the Sell Content Add-on.

mycred_sell_content_new_purchaseFunction

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.

mycred_sell_content_payment_buttonsFunction

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

mycred_sell_content_post_idFunction

This function attempts to get the current posts ID.

mycred_sell_content_priorityFilter

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

mycred_sell_exp_titleFilter

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

mycred_sell_expire_calcFilter

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.

mycred_sell_thisShortcode

While you can sell the entire content of a post or page, you can use this shortcode to sell parts of the content allowing you to show “teasers” in the remaining content.

mycred_sell_this_ajaxShortcode

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.

mycred_sell_this_buttonFilter

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.

mycred_sell_this_labelFilter

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

mycred_user_has_paid_for_contentFilter

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

mycred_user_paid_for_contentFunction

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

About myCRED

myCRED is a free, open-source and developer friendly points management tool for WordPress powered websites.

Download Rate Plugin

Documentation

  • Add-ons
  • Core Shortcodes
  • F.A.Q.
  • Tutorials
  • Third Party Plugins
  • Code Snippets

Support

  • Product Licenses
  • Customization
  • Support Forums
  • Plugin Changelog
  • Contact

Copyright 2013 - 2022 byWPExperts; All rights reserved. myCRED is licensed under GPL 2.0

Terms & Conditions • Use of Cookies • Store Policy • Community Rules

Suggest Codex Example

You can submit suggestions for codex examples that you have available as a public gist. If you are a member on the mycred.me website, you can earn Tokens for each submission. To claim these Tokens, make sure you provide your mycred.me username.

Please make sure the example you submit is relevant and if you include documentation, it's provided in English.

logo
  • Membership New
  • Chapters
    • Chapter I – Introduction
    • Chapter II – Getting Started
    • Chapter III – Add-ons
    • Chapter IV – Premium Add-ons
    • Chapter V – For Developers
    • Chapter VI – Reference Guides
  • Categories
    • Actions
    • Classes
    • Constants
    • Filters
    • Functions
    • Objects
    • Shortcodes
    • Hooks
    • Template Tags
  • Packages
    • mycred/api
    • mycred/badge
    • mycred/balance
    • mycred/banking
    • mycred/content
    • mycred/core
    • mycred/coupon
    • mycred/email
    • mycred/game
    • mycred/log
    • mycred/notice
    • mycred/payment
    • mycred/purchase
    • mycred/rank
    • mycred/transfer
  • Store
  • Download