PluginProbe
GamiPress – Gamification plugin to reward points, badges & ranks in WordPress, now with AI / 7.9.7
GamiPress – Gamification plugin to reward points, badges & ranks in WordPress, now with AI v7.9.7
8.0.5 8.0.4 8.0.3 8.0.1 8.0.2 8.0.0 7.9.9.7 7.9.9.6 7.9.9.5 7.9.9.4 7.9.9.3 7.9.9.2 7.9.9.1 7.9.9 7.9.8 7.9.7 7.9.6 7.9.5 7.9.4 7.9.3 7.9.2 7.9.1 7.9.0 7.8.9 7.8.8 All 47 releases
gamipress / includes / compatibility / 1.4.3.php

1.4.3.php in GamiPress – Gamification plugin to reward points, badges & ranks in WordPress, now with AI 7.9.7, at includes/compatibility/1.4.3.php

38 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * GamiPress 1.4.3 compatibility functions
4 *
5 * @package GamiPress\1.4.3
6 * @author GamiPress <[email protected]>, Ruben Garcia <[email protected]>
7 * @since 1.4.3
8 */
9 // Exit if accessed directly
10 if( !defined( 'ABSPATH' ) ) exit;
11
12 /**
13 * Revoke an achievement from the user
14 *
15 * @deprecated use gamipress_revoke_achievement_to_user()
16 *
17 * @since 1.0.0
18 * @updated 1.2.8 Added $earning_id
19 *
20 * @see gamipress_revoke_achievement_from_user_old()
21 *
22 * @param integer $achievement_id The given achievement's post ID
23 * @param integer $user_id The given user's ID
24 * @param integer $earning_id The user's earning ID
25 *
26 * @return void
27 */
28 function gamipress_revoke_achievement_from_user( $achievement_id = 0, $user_id = 0, $earning_id = 0 ) {
29
30 // If not properly upgrade to required version fallback to compatibility function
31 if( ! is_gamipress_upgraded_to( '1.2.8' ) ) {
32 gamipress_revoke_achievement_from_user_old( $achievement_id, $user_id );
33 return;
34 }
35
36 gamipress_revoke_achievement_to_user( $achievement_id, $user_id, $earning_id );
37
38 }