Skip to content

i4w_exec

This shortcode allows the injection of PHP code into a post, page, excerpt or widget.

[ELSE_exec] conditional branching is NOT supported.

Shortcode nesting is NOT supported.

This shortcode doesn’t require parameters but expects PHP code (without <?php and ?>) to be placed between the start and end tags.

Shortcode
[i4w_exec]
$a = 3;
$b = 5;
$c = $a + $b;
echo $c;
[/i4w_exec]
Shortcode
[i4w_exec]
@include($my_path . 'my_php_script');
[/i4w_exec]