It will no longer be updated. If someone wants to keep updating it, contact me.
Is a collection of the completions and some snippets for Sublime Text
Type | Completions |
---|---|
Functions | 2901 |
Actions | 684 |
Filters | 1640 |
Classes | 404 |
Methods | 3705 |
Constants | 527 |
Capabilities | 125 |
wp-
for view some completionsadd_action-
for view actions completionsadd_filter-
for view filters completionsname_of_class-method_name
for view method completions. e.g WP_Error-add
by default all Classes wrap with sublime format completionsctrl+space
or alt+/
in linux for call completions if tag <?php
not is defined. e.g. for create plugin header in empty file.More info inside of wiki page.
Deprecated Functions, Constants, Classes, Methods, Actions, Filters have been removed
WordPress back compatibility files is not included, as support for PHP versions
Actions or Filter add two version of the completion only this not is dynamic name
With dynamic name:
{
"trigger": "add_action-load-{$page_hook}\tWP Action",
"contents": "add_action( \"load-${1:\\{${2:\\$page_hook}\\}}\", ${3:\\$function_to_add}, ${4:10} );"
},
Without dynamic name:
{
"trigger": "add_action-init\tWP Action",
"contents": "add_action( 'init', ${1:\\$function_to_add}, ${2:10} );"
},
{
"trigger": "init\tWP Action Name",
"contents": "init"
},
Some snippet the last index if used to delete this comments
If use Sublime Text before 3092 is possible what some snippet not working.
If your problem with alt+/
to show completions popup, set key bindings with ctrl+space
by example.
Find WordPress Completions inside of Package Control
You found some issue, please create an issue to solve it.
You are welcome support this project using Paypal