@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | /** |
46 | 46 | * Checks whether the current request is valid |
47 | 47 | * |
48 | - * @return bool |
|
48 | + * @return null|boolean |
|
49 | 49 | **/ |
50 | 50 | public function is_valid_save( $user_id = 0 ) { |
51 | 51 | if ( ! $this->verified_nonce_in_request() ) { |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | * Perform checks whether the current save() request is valid |
64 | 64 | * |
65 | 65 | * @param int $user_id ID of the user against which save() is ran |
66 | - * @return bool |
|
66 | + * @return null|boolean |
|
67 | 67 | **/ |
68 | 68 | public function is_valid_save_conditions( $user_id ) { |
69 | 69 | $valid = true; |
@@ -246,7 +246,7 @@ discard block |
||
246 | 246 | * Show the container only on users who have the $role role. |
247 | 247 | * |
248 | 248 | * @param string $role |
249 | - * @return object $this |
|
249 | + * @return User_Meta_Container $this |
|
250 | 250 | **/ |
251 | 251 | public function show_on_user_role( $role ) { |
252 | 252 | $this->settings['show_on']['role'] = (array) $role; |
@@ -258,7 +258,7 @@ discard block |
||
258 | 258 | * Show the container only for users who have either capabilities or roles setup |
259 | 259 | * |
260 | 260 | * @param array $show_for |
261 | - * @return object $this |
|
261 | + * @return User_Meta_Container $this |
|
262 | 262 | **/ |
263 | 263 | public function show_for( $show_for ) { |
264 | 264 | $this->settings['show_for'] = $this->parse_show_for( $show_for ); |