ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Word​Press Completions

by kallookoo ST2/ST3

Sublime Text Package for provider WordPress Completions

Details

  • 4.9.0+1.1
  • github.​com
  • github.​com
  • 3 weeks ago
  • 7 minutes ago
  • 1 year ago

Installs

  • Total 20K
  • Win 14K
  • OS X 4K
  • Linux 2K
Dec 16 Dec 15 Dec 14 Dec 13 Dec 12 Dec 11 Dec 10 Dec 9 Dec 8 Dec 7 Dec 6 Dec 5 Dec 4 Dec 3 Dec 2 Dec 1 Nov 30 Nov 29 Nov 28 Nov 27 Nov 26 Nov 25 Nov 24 Nov 23 Nov 22 Nov 21 Nov 20 Nov 19 Nov 18 Nov 17 Nov 16 Nov 15 Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7 Nov 6 Nov 5 Nov 4 Nov 3 Nov 2 Nov 1
Windows 0 32 25 36 37 34 24 28 23 30 33 31 38 28 19 28 28 35 32 34 32 17 28 28 33 45 50 27 21 26 36 40 46 28 21 34 37 41 35 40 30 30 36 36 42 34
OS X 0 6 8 10 3 10 5 4 8 7 7 10 9 2 4 4 15 11 12 10 3 6 7 10 9 16 4 6 8 12 11 7 19 13 15 5 12 6 7 7 13 9 6 5 8 11
Linux 0 5 9 8 5 10 7 2 5 2 6 6 5 2 1 3 4 5 5 7 5 6 7 4 7 9 5 5 0 7 2 8 5 7 4 3 4 7 5 4 9 6 8 4 5 3

Readme

Source
raw.​githubusercontent.​com

WordPress Completions

Is a collection of the completions and some snippets for Sublime Text

Completions List

Type Completions
Functions 2502
Actions 622
Filters 1365
Classes 344
Methods 3237
Constants 496
Capabilities 64

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.g WP_Error-add by default all Classes wrap with sublime format completions
  • Use ctrl+space or alt+/ 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 with ctrl+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