Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Adjust View Content Hook
- * Allow users to receive points for viewing content
- * multiple times until reached limit.
- * @version 1.0
- */
- add_filter( 'mycred_has_entry', 'mycredpro_allow_view_points_for_same', 10, 6 );
- function mycredpro_allow_view_points_for_same( $has, $reference, $ref_id, $user_id, $data, $type ) {
- if ( $reference != 'view_content' ) return $has;
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement