Ultimate Guide to WordPress Plugin Development

Slides:



Advertisements
Similar presentations
WordPress Themes.
Advertisements

WordPress from Start to Finish Day 3: Working with plugins (
Samsung Smart TV is a web-based application running on an application engine installed on digital TVs connected to the Internet.
Installing Instant WordPress 1)Download Instant WordPress from the following location:- 2) Double Click on the downloaded.
Essential WordPress Plugins Byte of Texas 2015 Austin Food Blogger Alliance Margaret Dornbusch MadSweetWorld.com.
Introduction to WordPress. Learning Outcomes Describe WordPress Compare and contrast the difference between a WordPress hosted blog and a hosted blog.
Customizing your Theme Information Systems 337 Prof. Harry Plantinga.
Turners SharePoint Web Site How we did it. 2 Page Anatomy Custom Search Web Part Custom Search Web Part Data Form Web Parts Content Query Web Part HTML.
Creating Wordpress Plugins. Who is Here? PHP GTA Meetup Wordpress Toronto Meetup East Toronto Web Design Meetup.
Wordpress as a content management system Building a better website with content management systems | June 12, 2009.
Final Presentation WordPress 3.0+ Leonard Bogdonoff 12/6/11 T. DEDONNO CIM225.
Custom Wordpress theme Thomas Smith, Chris Gorrod, Sam Paisley & Kathleen Jackson.
WordPress Widgets Kathy E Gill 1 February What Are Widgets?  A “configurable code snippet" that makes it possible to modify function and appearance.
Build a WordPress theme from HTML5 template Mario Peshev Devrix Devrix OnTheGo OnTheGo.
Making the Most of Plug-ins Brendan Sera-Shriar BackSpaceStudios.com.
What is Wordpress?  WordPress has a web template processor. Users can re-arrange widgets without editing PHP of HTML code; they can also install and.
Bones – HTML5 Wordpress Theme Development
Basics of Administration & Theming - Smarajit Dasgupta.
Creating a Web Presence Introduction to WordPress Week 1.
#psuweb13 WORDPRESS THEMES 101 A WORDPRESS THEME INTRO WORKSHOP.
Joel Bapaga on Web Design Strategies Technologies Commercial Value.
Creating Effective School and PTA Websites Sam Farnsworth Utah PTA Technology Specialist
WordPress ® in simple terms WordPress is a free and open source blogging tool and a content-management system (CMS) based on PHP and MySQL, which runs.
2 FreelancingOutsourcing 3  Marketplaces are websites that match buyers and sellers of services provided via the internet.  Service providers, or.
WordPress Plugin Development A Starter Guide For Beginners.
WordPress Architecture ► Core files – PHP ► MySQL database  Configured by the installation script ► wp-content directory  themes subdirectory: layout.
MySQL More… 1. More on SQL In MySQL, the Information Schema is the “Catalog” in the SQL standard SQL has three components: Data definition Data manipulation.
Turning WordPress into a full-blown CMS -ALEX YOUNG.
WORDPRESS IS IT EASY FOR ME ?. WHY should I use WordPress ?
E-Portfolio Review MDDE 610 Winter 2015 Group 1. MAHARA OPTIONS ●Open Source Electronic Portolio ●Resume creator ●Weblog ●Social networking system.
Advanced Web 2012 Lecture 11 Sean Costain 2012.
#eduguruSummit WORDPRESS THEMES 101 SOME SIMPLE STARTER TIPS FOR WORDPRESS THEMES dotEduGuru Summit 2013.
Presented by Karen Porter UM School of Business Administration & ImpactOnlineMarketing.com Choosing & Configuring Widgets.
+ Publishing Your First Post USING WORDPRESS. + A CMS (content management system) is an application that allows you to publish, edit, modify, organize,
Workshop Partner:. Saad Amin Cofounder and CTO Inspire Chittagong Cofounder & Managing Director Codework Builders and Assets Ltd.
S OFTWARE S OLUTIONS P OINT W ORD P RESS D EVELOPMENT (WP W EBSITE D EVELOPMENT )
Wordpress Overview Wordpress is an open-source and free Web publishing application, content management system( CMS) and blogging tool built by a community.
Introduction To Simple WordPress Plugin Development
Intro to WordPress (Using XAMPP)
CONTENT MANAGEMENT SYSTEM CSIR-NISCAIR, New Delhi
CONTENT MANAGEMENT SYSTEM CSIR-NISCAIR, New Delhi
What is Laravel ? By Georgi Genov.
 Google analytics add your word press to help you to track your website visitors  That what they are looking for  Google + help you to access your.
Developing WordPress Plugins
CSE 103 Day 20 Jo is out today; I’m Carl
Personal Website Final Project
Jill Sullivan Senior Marketing Manager Infront Webworks
What is a Blog? short for Weblog journal on a website
WordPress Plugins Popular WP Plugins: Sliders, Forms, Contacts, SEO, Forum, Photo Gallery, e-Commerce WordPress Plugins SoftUni Team Technical Trainers.
Customizing your Theme
WordPress Development
PHP / MySQL Introduction
WordPress Plugins.
Your Name Google Analytics Plugins for WordPress Guided By: wpglobalsupportwpglobalsupport.
Easy methods to control your RSS Feeds Footer in WordPress Guided By: wpglobalsupportwpglobalsupport.
Many North American countries asked us a way to produce a responsive slider with Soliloquy in WordPress? If you would like to grasp, then you're on the.
How to Add Currency Converter in WordPress Have you ever wanted to know how to add currency converter to WordPress? dont worry! Keep reading this guide.
WordPress Ultimate PDF Generator
WordPress Plugin Development
Build a WordPress theme from HTML5 template
Easy Website Creation Using WordPress
Samer Koda IEEE-SEM – Section Student Representative IEEE-SEM-SA – Webmaster 12/7/2018.
I've Installed WordPress ... Now What?
WordPress Development
Wordpress test.cs.edinboro.edu.
10 Most Important WordPress Plugins You Must Have Website Promoters L.L.C.
Wordpress.
Customising your site.
How To Add Custom Widget Areas to WordPress Themes.
WordPress Development
Presentation transcript:

What Is a Plugin? WordPress plugins are apps that allow you to add new features and functionality to your WordPress website. Exactly the same way as apps do for your smartphone. WordPress plugins allows you to create almost any kind of website with WordPress. Allows developers to change the WordPress core without modifying any of its code. Contains a combination of PHP, HTML, CSS, Bootstrap, and Javascript.

 Extend existing functionality  Save time  Portability  Make money

 Contact Form 7 / Gravity form  WooCommerce  All in One SEO Pack  WP Super Cache  Google Analytics for WordPress by MonsterInsights  Google XML Sitemaps  Advanced Custom Fields  Really Simple CAPTCHA  MailChimp for WordPress

First, a folder that contains all the plugin files. The folder should be named the same as your plugin. For example, I named my plugin “dental-plan” so the folder name is “dental-plan”. This folder will contain all the files for your plugin. Second, a PHP file that has the same name as your folder. In my case this was “dental-plan.php”. This file is all that is required to make the plugin function. In order for the plugin to function, you do not even have to put this file in a folder, but since most plugins are more than one file its best to just make the folder for good practice. Third, you should have a “readme.txt” file. Please note that the readme.txt file is NOT required, but if you want to get your plugin on the official WordPress plugin repository then it is required. This file will contain all the useful information that the users will need to know about your plugin.

On the top your PHP file put some information about your plugin. The first lines of your plug-in must be comment information for the parsing engine. This is extremely important as WordPress will be unable to process your file without. Below is an example code snippet. <?php /* Plugin Name: Dental Plan Plugin Plugin URI: Description: Subscribe Dental plan Version: 1.2 Author: F5buddy Author URI: License: F-5 Copyright: F5buddy */

1.There are two types of hooks: action and filter hooks. A.Action hooks tell WordPress to perform an action. B.Filter hooks tell WordPress to change some part of the content. 2.Hooks are a necessary part of any plugin as they instruct WordPress to act on a certain feature or piece of content. 3.Themes can also include hooks in their functions.php file.

Action Hooks: 1.register_activation_hook 2.register_deactivation_hook 3.register_uninstall_hook 4.admin_menu 5. wp_enqueue_scripts 6.init 7.admin_init Filter Hooks: 1. the_content 2. admin_footer_text 3. body_class 4. login_headertitle 5. wp_footer 6. the_modified_time

register_activation_hook( __FILE__, 'prefix_create_table' ); function prefix_create_table() { global $wpdb; $charset_collate = $wpdb->get_charset_collate(); $sql = "CREATE TABLE `plan` ( `plan_id` int(11) AUTO_INCREMENT PRIMARY KEY, `plan_name` varchar(50) NOT NULL, `plan_des` longtext NOT NULL, `today_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) "; if ( ! function_exists('dbDelta') ) { require_once( ABSPATH. 'wp-admin/includes/upgrade.php' ); } dbDelta( $sql ); }

register_uninstall_hook( __FILE__, 'plugin_uninstall' ); function plugin_uninstall() { global $wpdb; $sql = "DROP TABLE IF EXISTS `plan`"; $wpdb->query($sql); }

wp_register_style('bootstrap', plugins_url('css/bootstrap.css',__FILE__)); wp_enqueue_style('bootstrap'); 1.Enqueue Styles 2.wp_register_style() 3.wp_deregister_style() 4.wp_enqueue_style() 5.wp_dequeue_style() 6.wp_add_inline_style() 7.wp_style_is() 1.Enqueue Scripts 2.wp_register_script() 3.wp_deregister_script() 4.wp_enqueue_script() 5.wp_dequeue_script() 6.wp_add_inline_script() 7.wp_enqueue_media()

add_action('admin_menu', ' register_admin_custom_menu’); function register_admin_custom_menu() { add_menu_page('Dental Service','Dental Plan', 'manage_options', 'view-plan', 'view_plan', 'dashicons-welcome-widgets-menus' ); add_submenu_page('view-plan', ‘Plan setting', 'Straipe setting', 'manage_options', 'plan-setting', 'setting_plan'); } $page_title, $menu_title, $capability, $menu_slug, $function, $icon Parameter values

WordPress offers a predefined shortcode function to create shortcode in WordPress plugin. For using shortcode function, we have to define a handler function that parse the shortcode and return some output. Then, we need to register a shortcode using add_shortcode() function. add_shortcode($shortcode_name, $handler_function); $shortcode_name – (required, string) It is a string that to be searched in the post. $handler_function – (required, callable) It is a hook to run when shortcode is found. function custom_select_plan() { include( plugin_dir_path( __FILE__ ). plan-vive-page.php'); } add_shortcode( 'subscriptions-dental-plan', 'custom_select_plan' );

Use Shortcode in a Template