Skip to main content

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 language of 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 filters something and passes it back to the hook for further use.

WordPress plugin coding standards.

WordPress PHP Coding Standards
WordPress HTML Coding Standards.
WordPress CSS Coding Standards.
WordPress JavaScript Coding Standards.





Tags:
WordPress database structure. create a plugin from scratch WordPress.
Programming Language used in plugin development, Programming Approach used in plugin developing,

Comments