Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation Changes based on Walkthrough #213

Merged
merged 3 commits into from
Nov 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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`
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Boolean isn't in the definition, but I figure it works.

- `button_url`
- `image_alt`
- `image_url`
- `number`
- `price`
- `string`

#### Example

Expand Down
Loading