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

Installs

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

Readme

Source
raw.​githubusercontent.​com

WordPress Completions

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

Completions List

Type Completions
Functions 2549
Actions 628
Filters 1398
Classes 359
Methods 3338
Constants 514
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