plugin development guideline

7

Upload: arryaas

Post on 13-Apr-2017

172 views

Category:

Software


0 download

TRANSCRIPT

Page 1: Plugin Development Guideline
Page 2: Plugin Development Guideline

Plugin Development Guideline

Page 3: Plugin Development Guideline

Plugin’s Directory• my-plugin/

• /admin• /assets

• /css/• /images/• /js/

• /classes• /languages• /templates• my-plugin.php

Page 4: Plugin Development Guideline

Plugin Headers/*Plugin Name: My PluginPlugin URI: http://my-plugin.com/Description: This describes my plugin in a short sentenceVersion: 1.0Author: WordPress NepalAuthor URI: http://my-plugins-author.com/License: GPL2License URI: https://www.gnu.org/licenses/gpl-2.0.htmlDomain Path: /languagesText Domain: my-plugin*/

Page 5: Plugin Development Guideline

Using Hooks• Using existing hooks• add_action(), add_filter()

• Defining your own hooks• do_action(), apply_filters()

• Using hooks from everywhere

Page 6: Plugin Development Guideline

Readme.txt=== Plugin Name ===== Description ==== Installation ==== Frequently Asked Questions ==== Changelog ==

Page 7: Plugin Development Guideline

That’s all FolksFor Now :)