Advertisement
designbymerovingi

myCRED: Has user paid for content?

Mar 25th, 2016
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.15 KB | None | 0 0
  1. $mycred  = mycred();
  2. $user_id = 1;
  3. $post_id = 2;
  4.  
  5. if ( $mycred->has_entry( 'buy_content', $post_id, $user_id ) ) {
  6.     // user has paid for content
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement