| @@ -1,39 +1,7 @@ | ||
| 1 | 1 | <?php |
| 2 | -/** | |
| 3 | - * Gets UsersWP setting value using key. | |
| 4 | - * | |
| 5 | - * @since 1.0.0 | |
| 6 | - * @package userswp | |
| 7 | - * | |
| 8 | - * @param string $key Setting Key. | |
| 9 | - * @param bool|string $default Default value. | |
| 10 | - * @param bool $cache Use cache to retrieve the value?. | |
| 11 | - * | |
| 12 | - * @return string Setting Value. | |
| 13 | - */ | |
| 14 | -function uwp_get_option( $key = '', $default = false, $cache = true ) { | |
| 15 | - $meta = new UsersWP_Meta(); | |
| 16 | - return $meta->get_option($key, $default, $cache); | |
| 17 | -} | |
| 18 | 2 | |
| 19 | 3 | /** |
| 20 | - * Updates UsersWP setting value using key. | |
| 21 | - * | |
| 22 | - * @since 1.0.0 | |
| 23 | - * @package userswp | |
| 24 | - * | |
| 25 | - * @param string|bool $key Setting Key. | |
| 26 | - * @param string $value Setting Value. | |
| 27 | - * | |
| 28 | - * @return bool Update success or not?. | |
| 29 | - */ | |
| 30 | -function uwp_update_option( $key = false, $value = '') { | |
| 31 | - $meta = new UsersWP_Meta(); | |
| 32 | - return $meta->update_option($key, $value); | |
| 33 | -} | |
| 34 | - | |
| 35 | -/** | |
| 36 | 4 | * Gets UsersWP user meta value using key. |
| 37 | 5 | * |
| 38 | 6 | * @since 1.0.0 |
| 39 | 7 | * @package userswp |
| @@ -60,9 +28,9 @@ | ||
| 60 | 28 | * @param string $value User meta Value. |
| 61 | 29 | * |
| 62 | 30 | * @return bool Update success or not?. |
| 63 | 31 | */ |
| 64 | -function uwp_update_usermeta( $user_id = false, $key, $value ) { | |
| 32 | +function uwp_update_usermeta( $user_id, $key, $value ) { | |
| 65 | 33 | $meta = new UsersWP_Meta(); |
| 66 | 34 | return $meta->update_usermeta($user_id, $key, $value); |
| 67 | 35 | } |
| 68 | 36 | |