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 15K
  • Win 10K
  • OS X 3K
  • Linux 2K
Aug 20 Aug 19 Aug 18 Aug 17 Aug 16 Aug 15 Aug 14 Aug 13 Aug 12 Aug 11 Aug 10 Aug 9 Aug 8 Aug 7 Aug 6 Aug 5 Aug 4 Aug 3 Aug 2 Aug 1 Jul 31 Jul 30 Jul 29 Jul 28 Jul 27 Jul 26 Jul 25 Jul 24 Jul 23 Jul 22 Jul 21 Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10 Jul 9 Jul 8 Jul 7 Jul 6
Windows 13 26 29 32 33 29 29 15 20 27 33 37 35 33 28 28 19 31 42 33 37 31 28 40 28 41 30 40 21 27 38 31 37 34 40 28 17 26 24 28 41 29 19 19 18 35
OS X 8 4 7 9 4 11 15 6 8 7 13 6 8 11 4 3 7 6 7 13 6 3 8 9 9 7 15 5 4 5 5 14 10 15 10 7 1 10 9 7 10 17 9 6 16 8
Linux 1 9 4 8 8 8 6 2 3 8 11 7 8 4 1 9 7 7 5 5 4 5 5 6 4 10 7 6 10 2 9 6 3 7 4 9 6 3 7 5 5 8 8 2 5 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 2466
Actions 621
Filters 1347
Classes 351
Methods 3268
Constants 513
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