Advertisement
designbymerovingi

Untitled

Oct 19th, 2017
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. // Award the user liking
  2. if ( $this->prefs['add_like']['creds'] != 0) {
  3. // If not over limit
  4. if ( ! $this->over_hook_limit( 'add_like', 'wp_add_like', $user_id ) ) {
  5. // Make sure this is unique event
  6. if ( ! $this->core->has_entry( 'wp_add_like', $id, $user_id ) ) {
  7. // Execute
  8. $this->core->add_creds(
  9. 'wp_add_like',
  10. $user_id,
  11. $this->prefs['add_like']['creds'],
  12. $this->prefs['add_like']['log'],
  13. $id,
  14. array( 'ref_type' => $key ),
  15. $this->mycred_type
  16. );
  17. }
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement