@@ -40,7 +40,7 @@ |
||
| 40 | 40 | /** |
| 41 | 41 | * Return a differently formatted value for end-users |
| 42 | 42 | * |
| 43 | - * @return mixed |
|
| 43 | + * @return boolean |
|
| 44 | 44 | **/ |
| 45 | 45 | public function get_formatted_value() { |
| 46 | 46 | return ( $this->get_value() === $this->option_value ); |
@@ -54,8 +54,6 @@ discard block |
||
| 54 | 54 | * Check if a post has a term |
| 55 | 55 | * |
| 56 | 56 | * @param integer $post_id |
| 57 | - * @param integer $term_id |
|
| 58 | - * @param string $term_taxonomy |
|
| 59 | 57 | * @return boolean |
| 60 | 58 | */ |
| 61 | 59 | protected function post_has_term( $post_id, $raw_term ) { |
@@ -67,7 +65,6 @@ discard block |
||
| 67 | 65 | * Check if a post has any of the supplied terms |
| 68 | 66 | * |
| 69 | 67 | * @param integer $post_id |
| 70 | - * @param array<object> $term_id |
|
| 71 | 68 | * @return boolean |
| 72 | 69 | */ |
| 73 | 70 | protected function post_has_any_term( $post_id, $raw_terms ) { |
@@ -56,8 +56,6 @@ discard block |
||
| 56 | 56 | * Check if a post has a term |
| 57 | 57 | * |
| 58 | 58 | * @param integer $post_id |
| 59 | - * @param integer $term_id |
|
| 60 | - * @param string $term_taxonomy |
|
| 61 | 59 | * @return boolean |
| 62 | 60 | */ |
| 63 | 61 | protected function post_has_term( $post_id, $raw_term ) { |
@@ -69,7 +67,6 @@ discard block |
||
| 69 | 67 | * Check if a post has any of the supplied terms |
| 70 | 68 | * |
| 71 | 69 | * @param integer $post_id |
| 72 | - * @param array<object> $term_id |
|
| 73 | 70 | * @return boolean |
| 74 | 71 | */ |
| 75 | 72 | protected function post_has_any_term( $post_id, $raw_terms ) { |
@@ -286,7 +286,7 @@ discard block |
||
| 286 | 286 | * |
| 287 | 287 | * @deprecated |
| 288 | 288 | * @param int|string $page page ID or page path |
| 289 | - * @return object $this |
|
| 289 | + * @return Post_Meta_Container $this |
|
| 290 | 290 | **/ |
| 291 | 291 | public function show_on_page( $page ) { |
| 292 | 292 | $page_id = absint( $page ); |
@@ -308,7 +308,7 @@ discard block |
||
| 308 | 308 | * |
| 309 | 309 | * @deprecated |
| 310 | 310 | * @param string $parent_page_path |
| 311 | - * @return object $this |
|
| 311 | + * @return Post_Meta_Container $this |
|
| 312 | 312 | **/ |
| 313 | 313 | public function show_on_page_children( $parent_page_path ) { |
| 314 | 314 | $page = get_page_by_path( $parent_page_path ); |
@@ -322,7 +322,7 @@ discard block |
||
| 322 | 322 | * |
| 323 | 323 | * @deprecated |
| 324 | 324 | * @param string|array $template_path |
| 325 | - * @return object $this |
|
| 325 | + * @return Post_Meta_Container $this |
|
| 326 | 326 | **/ |
| 327 | 327 | public function show_on_template( $template_path ) { |
| 328 | 328 | // Backwards compatibility where only pages support templates |
@@ -340,7 +340,7 @@ discard block |
||
| 340 | 340 | * |
| 341 | 341 | * @deprecated |
| 342 | 342 | * @param string|array $template_path |
| 343 | - * @return object $this |
|
| 343 | + * @return Post_Meta_Container $this |
|
| 344 | 344 | **/ |
| 345 | 345 | public function hide_on_template( $template_path ) { |
| 346 | 346 | $template_paths = is_array( $template_path ) ? $template_path : array( $template_path ); |
@@ -354,7 +354,7 @@ discard block |
||
| 354 | 354 | * |
| 355 | 355 | * @deprecated |
| 356 | 356 | * @param int $level |
| 357 | - * @return object $this |
|
| 357 | + * @return Post_Meta_Container $this |
|
| 358 | 358 | **/ |
| 359 | 359 | public function show_on_level( $level ) { |
| 360 | 360 | $this->and_when( 'post_level', '=', intval( $level ) ); |
@@ -367,7 +367,7 @@ discard block |
||
| 367 | 367 | * |
| 368 | 368 | * @deprecated |
| 369 | 369 | * @param string|array $post_format Name of the format as listed on Codex |
| 370 | - * @return object $this |
|
| 370 | + * @return Post_Meta_Container $this |
|
| 371 | 371 | **/ |
| 372 | 372 | public function show_on_post_format( $post_format ) { |
| 373 | 373 | $post_formats = is_array( $post_format ) ? $post_format : array( $post_format ); |
@@ -379,8 +379,8 @@ discard block |
||
| 379 | 379 | * Show the container only on posts from the specified type(s). |
| 380 | 380 | * |
| 381 | 381 | * @deprecated |
| 382 | - * @param string|array $post_types |
|
| 383 | - * @return object $this |
|
| 382 | + * @param string $post_types |
|
| 383 | + * @return Post_Meta_Container $this |
|
| 384 | 384 | **/ |
| 385 | 385 | public function show_on_post_type( $post_types ) { |
| 386 | 386 | $post_types = is_array( $post_types ) ? $post_types : array( $post_types ); |
@@ -395,7 +395,7 @@ discard block |
||
| 395 | 395 | * |
| 396 | 396 | * @deprecated |
| 397 | 397 | * @param string $category_slug |
| 398 | - * @return object $this |
|
| 398 | + * @return Post_Meta_Container $this |
|
| 399 | 399 | **/ |
| 400 | 400 | public function show_on_category( $category_slug ) { |
| 401 | 401 | $this->and_when( 'post_term', '=', array( |
@@ -412,7 +412,7 @@ discard block |
||
| 412 | 412 | * @deprecated |
| 413 | 413 | * @param string $taxonomy_slug |
| 414 | 414 | * @param string $term_slug |
| 415 | - * @return object $this |
|
| 415 | + * @return Post_Meta_Container $this |
|
| 416 | 416 | **/ |
| 417 | 417 | public function show_on_taxonomy_term( $term_slug, $taxonomy_slug ) { |
| 418 | 418 | $this->and_when( 'post_term', '=', array( |
@@ -210,7 +210,7 @@ discard block |
||
| 210 | 210 | * |
| 211 | 211 | * @deprecated |
| 212 | 212 | * @param string|array $taxonomies |
| 213 | - * @return object $this |
|
| 213 | + * @return Term_Meta_Container $this |
|
| 214 | 214 | **/ |
| 215 | 215 | public function show_on_taxonomy( $taxonomies ) { |
| 216 | 216 | $taxonomies = is_array( $taxonomies ) ? $taxonomies : array( $taxonomies ); |
@@ -223,7 +223,7 @@ discard block |
||
| 223 | 223 | * |
| 224 | 224 | * @deprecated |
| 225 | 225 | * @param int $term_level |
| 226 | - * @return object $this |
|
| 226 | + * @return Term_Meta_Container $this |
|
| 227 | 227 | */ |
| 228 | 228 | public function show_on_level( $term_level ) { |
| 229 | 229 | $this->and_when( 'term_level', '=', intval( $term_level ) ); |
@@ -206,7 +206,7 @@ |
||
| 206 | 206 | * |
| 207 | 207 | * @deprecated |
| 208 | 208 | * @param string|array $role |
| 209 | - * @return object $this |
|
| 209 | + * @return User_Meta_Container $this |
|
| 210 | 210 | **/ |
| 211 | 211 | public function show_on_user_role( $role ) { |
| 212 | 212 | $roles = is_array( $role ) ? $role : array( $role ); |