Public function
Prefix: pubf
Description: This snippet creates a public function in PHP.
Body:
public function $1($2): ${3:void} { $0}Below are useful CSS palette color snippets for your theme. Use the provided prefixes to quickly insert the corresponding CSS variable.
| Name | Prefix | Body |
|---|---|---|
| Palette color | pc | var(--theme-palette-color-$1) |
| Palette color 1 | pc1 | var(--theme-palette-color-1) |
| Palette color 2 | pc2 | var(--theme-palette-color-2) |
| Palette color 3 | pc3 | var(--theme-palette-color-3) |
| Palette color 4 | pc4 | var(--theme-palette-color-4) |
| Palette color 5 | pc5 | var(--theme-palette-color-5) |
| Palette color 6 | pc6 | var(--theme-palette-color-6) |
| Palette color 7 | pc7 | var(--theme-palette-color-7) |
| Palette color 8 | pc8 | var(--theme-palette-color-8) |
Public function
Prefix: pubf
Description: This snippet creates a public function in PHP.
Body:
public function $1($2): ${3:void} { $0}Private function
Prefix: prif
Description: This snippet creates a private function in PHP.
Body:
private function $1($2): ${3:void} { $0}Protected function
Prefix: prof
Description: This snippet creates a protected function in PHP.
Body:
protected function $1($2): ${3:void} { $0}