Skip to content

Commit

Permalink
Documentation Changes based on Walkthrough (#213)
Browse files Browse the repository at this point in the history
* Update hooks.md

fixing a typo in the documentation

* Update query.md

Adding proper types
  • Loading branch information
smithjw1 authored Nov 26, 2024
1 parent a4eeea0 commit 0c5f7e3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/extending/hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ add_filter( 'wpcomvip_log_to_query_monitor', '__return_false' );
Filter whether to register the included example API block ("Conference Event") (default: `true`).

```php
add_filter( 'remote_data_blocks_register_example_block', '__return false' );
add_filter( 'remote_data_blocks_register_example_block', '__return_false' );
```

### remote_data_blocks_allowed_url_schemes
Expand Down
10 changes: 9 additions & 1 deletion docs/extending/query.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,15 @@ The `get_input_schema` method defines the input data expected by the query. The
- `overrides` (optional): An array of possible [overrides](overrides.md) for the input variable. Each override is an associative array with the following keys:
- `type`: The type of the override. Supported values are `query_var` and `url`.
- `target`: The targeted entity for the override (e.g., the query or URL variable that contains the overridde).
- `type` (required): The type of the input variable. Supported types are `string`, `number`, and `boolean`.
- `type` (required): The type of the input variable. Supported types are:
- `base64`
- `boolean`
- `button_url`
- `image_alt`
- `image_url`
- `number`
- `price`
- `string`

#### Example

Expand Down

0 comments on commit 0c5f7e3

Please sign in to comment.