@@ -159,7 +159,7 @@ discard block |
||
| 159 | 159 | * Get object property and optionally set a fallback |
| 160 | 160 | * @since 2.0.0 |
| 161 | 161 | * @param string $property Metabox config property to retrieve |
| 162 | - * @param mixed $fallback Fallback value to set if no value found |
|
| 162 | + * @param boolean|null $fallback Fallback value to set if no value found |
|
| 163 | 163 | * @return mixed Metabox config property value or false |
| 164 | 164 | */ |
| 165 | 165 | public function prop( $property, $fallback = null ) { |
@@ -464,7 +464,6 @@ discard block |
||
| 464 | 464 | * Allows overloading the object with methods... Whooaaa oooh it's magic, y'knoooow. |
| 465 | 465 | * @since 1.0.0 |
| 466 | 466 | * @param string $method Non-existent method. |
| 467 | - * @param array $arguments All arguments passed to the method |
|
| 468 | 467 | */ |
| 469 | 468 | public function __call( $method, $args ) { |
| 470 | 469 | $object_class = strtolower( get_class( $this ) ); |
@@ -315,10 +315,10 @@ |
||
| 315 | 315 | * which is callable. If so, it registers the callback, and if not, |
| 316 | 316 | * converts the maybe-modified $val to a boolean for return. |
| 317 | 317 | * |
| 318 | - * The registered handlers will have a parameter name which matches the filter, except: |
|
| 319 | - * - The 'cmb2_api' prefix will be removed |
|
| 320 | - * - A '_cb' suffix will be added (to stay inline with other '*_cb' parameters). |
|
| 321 | - * |
|
| 318 | + * The registered handlers will have a parameter name which matches the filter, except: |
|
| 319 | + * - The 'cmb2_api' prefix will be removed |
|
| 320 | + * - A '_cb' suffix will be added (to stay inline with other '*_cb' parameters). |
|
| 321 | + * |
|
| 322 | 322 | * @since 2.2.3 |
| 323 | 323 | * |
| 324 | 324 | * @param string $hook_name The hook name. |
@@ -198,7 +198,7 @@ discard block |
||
| 198 | 198 | * @since 2.2.3 |
| 199 | 199 | * |
| 200 | 200 | * @param mixed $cb Callable function/method. |
| 201 | - * @return mixed Results of output buffer after calling function/method. |
|
| 201 | + * @return string Results of output buffer after calling function/method. |
|
| 202 | 202 | */ |
| 203 | 203 | public function get_cb_results( $cb ) { |
| 204 | 204 | $args = func_get_args(); |
@@ -214,7 +214,6 @@ discard block |
||
| 214 | 214 | * |
| 215 | 215 | * @since 2.2.3 |
| 216 | 216 | * |
| 217 | - * @param mixed $item WordPress representation of the item. |
|
| 218 | 217 | * @param WP_REST_Request $request Request object. |
| 219 | 218 | * @return WP_REST_Response $response |
| 220 | 219 | */ |