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 weeks ago
  • 41 minutes ago
  • 8 months ago

Installs

  • Total 10K
  • Win 6K
  • OS X 2K
  • Linux 1K
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 Mar 9 Mar 8 Mar 7 Mar 6 Mar 5 Mar 4 Mar 3 Mar 2 Mar 1 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
Windows 25 45 27 30 42 36 17 29 28 25 27 38 32 22 28 35 53 30 31 44 27 23 30 45 30 28 30 21 20 34 33 24 35 29 14 25 29 28 44 21 44 29 30 30 29 41
OS X 6 17 11 5 9 8 7 6 6 5 11 18 9 11 2 5 12 8 10 10 7 11 11 26 14 12 10 6 8 14 15 11 16 14 7 10 3 9 9 10 8 7 10 17 14 11
Linux 4 5 6 2 9 5 6 6 4 4 7 8 7 3 3 6 7 6 5 3 2 5 5 5 10 2 16 8 6 6 8 10 5 6 4 3 10 4 8 9 4 12 2 6 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 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