XYZ File Manager
Current Path:
/var/www/wordpress/wp-content/plugins/code-snippets/js/types
var
/
www
/
wordpress
/
wp-content
/
plugins
/
code-snippets
/
js
/
types
/
📁
..
📄
KeyboardShortcut.ts
(1.17 KB)
📄
ScreenNotice.ts
(57 B)
📄
SelectOption.ts
(379 B)
📄
Shortcodes.ts
(197 B)
📄
Snippet.ts
(932 B)
📄
Window.ts
(1.41 KB)
📄
WordPressCodeEditor.ts
(748 B)
📄
WordPressEditor.ts
(612 B)
📁
schema
Editing: Snippet.ts
export interface Snippet { readonly id: number readonly name: string readonly desc: string readonly code: string readonly tags: string[] readonly scope: SnippetScope readonly priority: number readonly active: boolean readonly network: boolean readonly shared_network?: boolean | null readonly modified?: string readonly conditionId: number readonly code_error?: readonly [string, number] | null } export type SnippetCodeType = 'php' | 'html' | 'css' | 'js' export type SnippetType = SnippetCodeType | 'cond' export type SnippetCodeScope = typeof SNIPPET_TYPE_SCOPES[SnippetCodeType][number] export type SnippetScope = typeof SNIPPET_TYPE_SCOPES[SnippetType][number] export const SNIPPET_TYPE_SCOPES = <const> { php: ['global', 'admin', 'front-end', 'single-use'], html: ['content', 'head-content', 'footer-content'], css: ['admin-css', 'site-css'], js: ['site-head-js', 'site-footer-js'], cond: ['condition'] }
Upload File
Create Folder