Programming Languages,
MATLAB,PHP,HTML,JAVASCRIPT,ASP.NET,
MACHINE LEARNING,
SOFTWARE TIPS and Track
Plugin Developing tutorial.
WordPress Tutorial
Matlab Programming
How to install Matlab All Version
installation to all code
Cover all filter code in Tutorial
complete Matlab course
how to download Matlab, and where to find help
Introduction to the Matlab basic
Web Programming
PHP tutorials
Android studio
software-installation tutorial
Fillmore Tutorial.
Video Editing
Search This Blog
WordPress plugin development tutorial in Urdu/Hindi Basic concept.
Welcome To Programming Tech#Create_Plugin_From_Scratch_Wordpress
WordPress plugin development tutorial Part1
Click Here For WordPress and Woo Commerce plugin development tutorial
What is WordPress Plugin?
It is a separate set of files that create a feature enhancement to the core WordPress files that run your WordPress.The plugin may have one functionality or some extension is more than one action perform.
Programming Language used in the plugin development?
WordPress plugins are made up of PHP code and can include other assets such as images, CSS for styling the form and other content, ajax, and JavaScript.The core languageof the WordPress plugin in PHP.
What is Hooks in WordPress?
Hooks are one line of code to interact/modify another piece of code at a specific point, pre-defined spots. They make up the inspiration for a way plugins and themes interact with WordPress Core, but they’re also used extensively by Core itself.
e.g Add some function after add to cart.
add_action( 'woocommerce_after_add_to_cart_button', 'Your function name' , perority(e.g 10) );
Types of hooks in WordPress.
Two types of hooks.
1. Actions
Allow you to feature data or change how WordPress operates. Callback functions for Actions will run at a selected point within the execution of WordPress and may perform a few tasks, like echoing text after adding to cart or inserting data into the database. Actions don't return anything back to the calling hook.
2. Filters
a filter takes the data it receives, modifies it somehow, and returns it. In other words: it filterssomething and passes it back to the hook for further use.
Comments
Post a Comment