Server IP : 192.158.238.246 / Your IP : 3.16.149.93 Web Server : LiteSpeed System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64 User : jenniferflocom ( 1321) PHP Version : 8.1.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/7779/cwd/plugins/code-snippets/js/types/wp/ |
Upload File : |
export const POSTS_ENDPOINT = '/wp/v2/posts' export interface Post { id: number date: string | null date_gmt?: string | null readonly guid?: { rendered: string } link: string modified?: string modified_gmt?: string slug: string status?: PostStatus readonly type: string password?: string readonly permalink_template?: string readonly generated_slug?: string title: { rendered: string } content?: { rendered: string protected: boolean } excerpt: { rendered: string protected: false } author: number featured_media: number comment_status?: 'open' | 'closed' ping_status?: 'open' | 'closed' format?: PostFormat meta?: Record<string, unknown> sticky?: boolean template?: string categories?: number[] tags?: number[] } export type PostStatus = 'publish' | 'future' | 'draft' | 'pending' | 'private' export type PostFormat = 'standard' | 'aside' | 'chat' | 'gallery' | 'link' | 'image' | 'quote' | 'status' | 'video' | 'audio' export type Posts = Post[]