Month: April 2021

Create Short code in WordPress using Action Hook

<?php /** DOC LOG */ defined('ABSPATH')||die("You can't access this file directly"); add_action('init','shairy_init'); function shairy_init() {            ...
READ MORE   >>

Action and Filter Hook in WordPress

Step 4 In the precious session we already learned about the Action Hook and Filter Hook of the word press. In this session we will cover the function used in these hooks with their working. There are 4 functions in Action and Filter Hook as...
READ MORE   >>

Activate / Deactivate Hooks in WordPress

Step 3 There are 3 Core Hooks in Wordpress Plugin Register_activation_hook ();Register_deactivation_hook ();Register_uninstall_hook (); But we can’t use Register_uninstall_hook () instead of this we create a new file with name uninstall....
READ MORE   >>

Hooks in WordPress

Step 2 Now we have to protect the content from hacking so that no-one can open this file directly. For this we use the following code if (! defined('ABSPATH')): die ("You can't access this file directly"); end if; Where is ABSPATH...
READ MORE   >>

Recent Comments

    • Copyright © 2020 (Er. Shairy Kalra). All Rights Reserved