Shortcodes

Want a successful Modern site?

Start with IQRA training; it’s easy and quick to your needs.

    How to use Shortcodes in IQRA CMS.    

use shortcodes any where you want to execute.

 

   How to Define Hooks.   

 

  1. register_shortcode()

parametors

  1. action name (required)
  2. function name (required)

 

 function hllox($val){
    echo 'Hello';
    print_r($val);
}

 register_shortcode('hello' , 'hllox');

 

 

   How to Call Hooks.   

 

  1. do_shortcode()

parametors

  1. shortcode name (required)

 

do_shortcode('[Hello parametor="My nam" y="Test"]');