130 likes | 440 Views
Wordpress Plugins. Hooks Plugin Most popular plugins. WP Hooks. Change WP behaviors without editing core files Action vs Filter Workflow: ‘ notifies authors when their work is published’. WP Hooks - Extra. Plugins. Plugins - description. <? php /* Plugin Name: Name Of The Plugin
E N D
Wordpress Plugins Hooks Plugin Most popular plugins
WP Hooks • Change WP behaviors without editing core files • Action vs Filter • Workflow: ‘notifies authors when their work is published’
Plugins - description <?php /* Plugin Name: Name Of The Plugin Plugin URI: http://URI_Of_Page_Describing_Plugin_and_Updates Description: A brief description of the Plugin. Version: The Plugin's Version Number, e.g.: 1.0 Author: Name Of The Plugin Author Author URI: http://URI_Of_The_Plugin_Author License: A "Slug" license name e.g. GPL2 */ ?>
WordPress Plugin Boilerplate • For: • Simple • Easy • Non-MVC • WP-style • Notes: • register_activation_hook • wp_enqueue_script/wp_enqueue_style • add_menu_page • add_option
WP Plugin MVC Boilerplate • scbFramework • WP MVC
Common Plugins • Contact Form 7 • Advanced Custom Fields • WP Super Cache • WP Smush.it
Security check list • http://wiki.vidait.vn/index.php5?title=WP_security_checklist
Exercise • Duration: 2 days • Content: • Hit-counter plugin: count how many time homepage is viewed. • Use add_option() to store data • Show result in Admin section