Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Award the user liking
- if ( $this->prefs['add_like']['creds'] != 0) {
- // If not over limit
- if ( ! $this->over_hook_limit( 'add_like', 'wp_add_like', $user_id ) ) {
- // Make sure this is unique event
- if ( ! $this->core->has_entry( 'wp_add_like', $id, $user_id ) ) {
- // Execute
- $this->core->add_creds(
- 'wp_add_like',
- $user_id,
- $this->prefs['add_like']['creds'],
- $this->prefs['add_like']['log'],
- $id,
- array( 'ref_type' => $key ),
- $this->mycred_type
- );
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement