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

Word​Press Completions

by kallookoo ALL

Sublime Text WordPress Package

Details

  • 5.2.2+1.0
  • github.​com
  • github.​com
  • 7 months ago
  • 2 hours ago
  • 4 years ago

Installs

  • Total 45K
  • Win 31K
  • Mac 8K
  • Linux 5K
Jan 19 Jan 18 Jan 17 Jan 16 Jan 15 Jan 14 Jan 13 Jan 12 Jan 11 Jan 10 Jan 9 Jan 8 Jan 7 Jan 6 Jan 5 Jan 4 Jan 3 Jan 2 Jan 1 Dec 31 Dec 30 Dec 29 Dec 28 Dec 27 Dec 26 Dec 25 Dec 24 Dec 23 Dec 22 Dec 21 Dec 20 Dec 19 Dec 18 Dec 17 Dec 16 Dec 15 Dec 14 Dec 13 Dec 12 Dec 11 Dec 10 Dec 9 Dec 8 Dec 7 Dec 6 Dec 5
Windows 12 17 17 21 12 15 17 19 23 14 18 19 19 13 10 11 14 21 7 25 17 14 21 15 15 13 12 10 7 9 10 15 30 10 15 8 11 14 14 24 15 19 20 11 16 13
Mac 0 4 4 3 6 3 6 2 4 8 5 5 4 2 1 3 7 4 0 2 2 4 4 6 2 2 5 6 1 1 1 5 5 3 3 1 2 5 7 1 4 2 4 3 7 2
Linux 1 3 2 4 1 5 4 0 1 2 1 2 1 2 1 2 4 2 1 1 3 2 2 5 4 3 3 1 1 3 6 2 2 2 2 2 3 3 3 5 4 4 4 2 1 1

Readme

Source
raw.​githubusercontent.​com

WordPress Completions

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

Completions List

Type Completions
Functions 2707
Actions 648
Filters 1490
Classes 381
Methods 3484
Constants 517
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