PluginProbe
UsersWP – Front-end login form, User Registration, User Profile & Members Directory plugin for WP / 1.2.74
UsersWP – Front-end login form, User Registration, User Profile & Members Directory plugin for WP v1.2.74
1.2.74 1.2.73 1.2.72 1.2.71 1.2.70 1.2.69 1.2.68 1.2.67 1.2.66 1.2.65 1.2.64 1.2.63 trunk 1.0.10 1.0.11 1.0.12 1.0.13 1.0.14 1.0.15 1.0.16 1.0.17 1.0.18 1.0.19 1.0.20 1.0.21 All 174 releases
← All changes | includes/helpers/meta.php +1 -33 1.0.191.2.74 View file →
@@ -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