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.0+1.0
  • github.​com
  • github.​com
  • 3 months ago
  • 58 minutes ago
  • 7 months ago

Installs

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

Readme

Source
raw.​githubusercontent.​com

WordPress Completions

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

Completions List

See extend completions list on wiki page

Type Completions
Functions 2760
Actions 642
Filters 1384
Classes 352
Methods 3330
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

  • 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