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.
-
register_shortcode()
parametors
- action name (required)
- function name (required)
function hllox($val){
echo 'Hello';
print_r($val);
}
register_shortcode('hello' , 'hllox');
-
do_shortcode()
parametors
- shortcode name (required)
do_shortcode('[Hello parametor="My nam" y="Test"]');