| | |
| | | 'highlight' => 'string', |
| | | ]) |
| | | ->auth('public') |
| | | ->rateLimit(30, 60) |
| | | ->rateLimit(30) |
| | | ->post([$this, 'handleFeedRequest']) |
| | | ->args([ |
| | | 'content' => 'string', |
| | |
| | | } |
| | | |
| | | /** |
| | | * Formats an item |
| | | * @param int $postID |
| | | * |
| | | * @param string $type |
| | | * @param $skip |
| | | * @return array |
| | | */ |
| | | protected function formatItem(int $postID, string $type = 'post', $skip = false): array |
| | |
| | | * @param array $items Formatted Args for WP_Query |
| | | * @param array $data parsed Request Data |
| | | * |
| | | * @return array|null |
| | | * @return array |
| | | */ |
| | | protected function processHighlightedItem(array $items, array $data): array |
| | | { |
| | |
| | | |
| | | /** |
| | | * @param array $args |
| | | * @param array $filters |
| | | * @param array $data |
| | | * |
| | | * @return array |
| | | */ |