WordPress Completions
Sublime Text WordPress Package
Details
Installs
- Total 56K
- Win 40K
- Mac 10K
- Linux 6K
Feb 28 | Feb 27 | Feb 26 | Feb 25 | Feb 24 | Feb 23 | Feb 22 | Feb 21 | Feb 20 | Feb 19 | Feb 18 | Feb 17 | Feb 16 | Feb 15 | Feb 14 | Feb 13 | Feb 12 | Feb 11 | Feb 10 | Feb 9 | Feb 8 | Feb 7 | Feb 6 | Feb 5 | Feb 4 | Feb 3 | Feb 2 | Feb 1 | Jan 31 | Jan 30 | Jan 29 | Jan 28 | Jan 27 | Jan 26 | Jan 25 | Jan 24 | Jan 23 | Jan 22 | Jan 21 | Jan 20 | Jan 19 | Jan 18 | Jan 17 | Jan 16 | Jan 15 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
WordPress Completions
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
Completions List
Type | Completions |
---|---|
Functions | 2901 |
Actions | 684 |
Filters | 1640 |
Classes | 404 |
Methods | 3705 |
Constants | 527 |
Capabilities | 125 |
How to use
- Use
wp-
for view some completions - Use
add_action-
for view actions completions - Use
add_filter-
for view filters completions - Use functions, constants or classes names, for e.g. plugin_dir… for view completions
- Use
name_of_class-method_name
for view method completions. e.gWP_Error-add
by default all Classes wrap with sublime format completions - Use
ctrl+space
oralt+/
in linux for call completions if tag<?php
not is defined. e.g. for create plugin header in empty file. - On some cause the first “tab” deletes all parameters instead of having to tab through each one:
- First Tab –> Select all parameters
- Each Tab There after –> Selects each individual parameter or block
Another Informations
- 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
Example of completion file for Hooks
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" },
- This first trigger use add_action- for get all actions and continue by name of the action, returns everything you need to create.
- The second trigger simply use the name and return this name.
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 withctrl+space
by example.
Install
Find WordPress Completions inside of Package Control
Issues
You found some issue, please create an issue to solve it.
Donate
You are welcome support this project using Paypal