This commit is contained in:
Ray Elliott 2022-03-13 19:42:13 +00:00
commit c7c70423b1
4 changed files with 180 additions and 152 deletions

View file

@ -1,5 +1,11 @@
extends html
snippet doc "/**"
/**
* $1
*/$0
endsnippet
snippet pre "<pre>print_r()</pre>"
echo "<pre>";
print_r($0);
@ -36,6 +42,18 @@ public function $1($2) {
}
endsnippet
snippet pt "protected function ..."
protected function $1($2) {
$0
}
endsnippet
snippet pv "private function ..."
private function $1($2) {
$0
}
endsnippet
snippet psf "public static function ..."
public static function $1($2) {
$0
@ -53,9 +71,25 @@ snippet ''= "'...' => "
endsnippet
snippet apm "add_post_meta(..."
add_post_meta( 341, 'DEBUG_$1', $0);
add_post_meta( 1, 'DEBUG_$1', $0);
endsnippet
snippet upm "update_post_meta(..."
update_post_meta( 341, 'DEBUG_$1', $0);
update_post_meta( 1, 'DEBUG_$1', $0);
endsnippet
snippet sw "switch ..."
switch ($1) {
case $2:
$3;
break;
default:
$0
}
endsnippet
snippet cs "case ..."
case $1:
$0;
break;
endsnippet