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.4+1.0
  • github.​com
  • github.​com
  • 4 weeks ago
  • 2 hours ago
  • 10 months ago

Installs

  • Total 12K
  • Win 8K
  • OS X 3K
  • Linux 1K
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 May 7 May 6 May 5 May 4 May 3 May 2 May 1 Apr 30 Apr 29 Apr 28 Apr 27 Apr 26 Apr 25 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
Windows 22 24 33 32 19 23 28 40 44 30 30 25 25 48 37 36 34 47 24 30 41 24 37 31 36 27 35 30 27 30 46 32 27 30 34 35 36 30 34 23 23 31 26 28 29 28
OS X 5 10 11 11 4 4 13 11 7 15 7 10 7 7 11 6 8 9 5 7 12 7 9 12 7 9 6 9 10 14 9 12 8 4 10 10 14 9 7 8 6 10 14 7 8 16
Linux 8 9 7 5 2 4 9 6 12 5 2 5 5 8 6 7 6 4 4 2 7 12 6 5 7 7 5 7 5 8 6 6 4 5 3 6 7 6 6 1 6 6 6 10 7 5

Readme

Source
raw.​githubusercontent.​com

WordPress Completions

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

Completions List

Type Completions
Functions 2762
Actions 642
Filters 1392
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
  • 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