https://github.com/dartui/sublime-wordpress-snippets
Wordpress Snippets for Sublime Text 3
https://github.com/dartui/sublime-wordpress-snippets
snippets wordpress-snippets
Last synced: 3 months ago
JSON representation
Wordpress Snippets for Sublime Text 3
- Host: GitHub
- URL: https://github.com/dartui/sublime-wordpress-snippets
- Owner: Dartui
- License: mit
- Created: 2016-07-05T18:07:06.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2017-05-05T06:43:56.000Z (about 9 years ago)
- Last Synced: 2025-03-01T19:46:18.527Z (over 1 year ago)
- Topics: snippets, wordpress-snippets
- Size: 7.81 KB
- Stars: 7
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Wordpress Snippets for Sublime Text 3
Simple snippets for Wordpress elements, such as meta boxes, pages, subpages, post types, taxonomies, etc...
# How to use
In PHP scope write `wp_` and find snippet you want to use. Each snippet is class-based, so it cannot be used outside of class (e.g. in functions.php).
# List of snippets
- wp_plugin_wrapper - class-based wrapper for plugin development
- wp_meta_box - adds meta box for post type with callback
- wp_menu_page - adds menu in admin dashboard with callback
- wp_submenu_page - adds submenu in admin dashboard with callback
- wp_enqueue_scripts - adds action and one line of script
- wp_enqueue_script - adds one line of script