Codex / mycred/content / Filters / mycred_user_has_paid_for_content


  1. Description
  2. Used By
  3. Parameters


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.

Used By

  • Class: myCRED_Sell_Content_Module Method: user_paid()


  • result (bool)
    By default will always return false.
  • user_id (int)
    The user in question, usually the current user.
  • post_id (int)
    The post in question that is set for sale.

Last edited March 28, 2016