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

Word​Press Completions

by 23r9i0 ST2/ST3

Sublime Text Package for provider WordPress Completions

Details

  • 4.7.3+1.0
  • github.​com
  • github.​com
  • 2 months ago
  • 32 minutes ago
  • 9 months ago

Installs

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

Readme

Source
raw.​githubusercontent.​com

WordPress Completions

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

Completions List

Type Completions
Functions 2761
Actions 642
Filters 1387
Classes 352
Methods 3334
Constants 517
Capabilities 56

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
  • Back compatibility 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:
    {
                "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 last index if used for 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 on linux, set key bindings with ctrl+space by example.

Install

Find WordPress Completions in Package Control

Issues

You found some issue, please create an issue to solve it.

Donate

You are welcome support this project using Paypal