ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Word​Press Completions

by kallookoo ST2/ST3

Sublime Text WordPress Package

Details

  • 4.9.8+1.2
  • github.​com
  • github.​com
  • 2 months ago
  • 46 minutes ago
  • 2 years ago

Installs

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

Readme

Source
raw.​githubusercontent.​com

WordPress Completions

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

Completions List

Type Completions
Functions 2556
Actions 627
Filters 1400
Classes 359
Methods 3339
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