1. Home
  2. Docs
  3. Index
  4. Shortcodes
  5. PHP Shortcodes

PHP Shortcodes

This code type allows plugin users to add PHP code to a web page. The code is added to a web page with a shortcode.

Example code

Add to web page

[cmruncode id="25"]


[cmruncode name="Hello World"]


Hello World

Custom parameters

The Code Manager supports custom parameters like:

[cmruncode name="Hello World" param1="ABC123" param2="DEF456"]

Use global $wpda_shortcode_args to get access to arguments like:

global $wpda_shortcode_args;
if ( isset( $wpda_shortcode_args['param1'] )  && isset( $wpda_shortcode_args['param2'] ) ) {
	// Your code goes here...


Was this article helpful to you? Yes No

Leave a Reply

Your email address will not be published. Required fields are marked *