Skip to content

Commit 9de0420

Browse files
committed
Update FILTERS.md
1 parent f80278b commit 9de0420

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

FILTERS.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -877,7 +877,7 @@ add_filter( 'fictioneer_filter_default_search_form_args', 'child_pre_select_sear
877877
Filters the chapter message array passed to `fictioneer_discord_send_message()` in `_module-discord.php` before it is encoded as JSON. Allows you to customize the webhook message. If made falsy, the message will not be sent.
878878

879879
**Parameters:**
880-
* 'message' (array) – The message and fields posted to the Discord webhook.
880+
* $message (array) – The message and fields posted to the Discord webhook.
881881
* 'content' (string) - The actual discord message.
882882
* 'embeds' (array) - Array of array with embedded items. Only uses the `0` index item.
883883
* `0` (array) - First item in the array of embeds.
@@ -892,8 +892,8 @@ Filters the chapter message array passed to `fictioneer_discord_send_message()`
892892
* 'footer' (string|null) - Optional. Title of the story.
893893
* 'thumbnail' (array|null) - Optional. Array of thumbnail data.
894894
* 'url' (string) - Thumbnail URL.
895-
* 'post' (WP_Post) – The new chapter being published.
896-
* 'story_id' (int|null) – The ID of the associated story if set. Unsafe.
895+
* $post (WP_Post) – The new chapter being published.
896+
* $story_id (int|null) – The ID of the associated story if set. Unsafe.
897897

898898
**Example:**
899899
```php

0 commit comments

Comments
 (0)