@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | /** |
47 | 47 | * Checks whether the current save request is valid |
48 | 48 | * |
49 | - * @return bool |
|
49 | + * @return null|boolean |
|
50 | 50 | **/ |
51 | 51 | public function is_valid_save( $user_id = 0 ) { |
52 | 52 | if ( ! $this->verified_nonce_in_request() ) { |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | * Check container attachment rules against object id |
98 | 98 | * |
99 | 99 | * @param int $object_id |
100 | - * @return bool |
|
100 | + * @return null|boolean |
|
101 | 101 | **/ |
102 | 102 | public function is_valid_attach_for_object( $object_id = null ) { |
103 | 103 | $valid = true; |
@@ -241,7 +241,7 @@ discard block |
||
241 | 241 | * Show the container only on users who have the $role role. |
242 | 242 | * |
243 | 243 | * @param string $role |
244 | - * @return object $this |
|
244 | + * @return User_Meta_Container $this |
|
245 | 245 | **/ |
246 | 246 | public function show_on_user_role( $role ) { |
247 | 247 | $this->settings['show_on']['role'] = (array) $role; |
@@ -253,7 +253,7 @@ discard block |
||
253 | 253 | * Show the container only for users who have either capabilities or roles setup |
254 | 254 | * |
255 | 255 | * @param array $show_for |
256 | - * @return object $this |
|
256 | + * @return User_Meta_Container $this |
|
257 | 257 | **/ |
258 | 258 | public function show_for( $show_for ) { |
259 | 259 | $this->settings['show_for'] = $this->parse_show_for( $show_for ); |