Adds a [callback] shortcode that can trigger PHP code so you can insert custom/complex things into your pages/posts.
As of April 2026, Shortcode Callback is a WordPress php plugin with 10 active installations and a 5/5 rating from 1 reviews. It has been downloaded 2.1K+ times in total. Requires WordPress 2.5+ and PHP false+. Available on WordPress.org since 2015. Last updated 10 years ago — may have compatibility concerns. Top alternative: WPCode – Insert Headers and Footers +….
The Shortcode Callback plugin allows you to use a [callback] shortcode to execute arbitrary PHP code wherever the shortcode is used.
Usage
Execute someFunction() and insert whatever it returns with the following shortcode:
[callback function=”someFunction”]
Example shortcode to include a PHP file (the path is relative to WordPress’ ABSPATH), then insert the results of someFunction() where you used the shortcode:
[callback include=”custom/filetoinclude.php” function=”someFunction”]
Shortcode example that includes a PHP file (the path is relative to WordPress’ ABSPATH), then passes a paramter to someFunction() and returns the results where you used the shortcode:
[callback function=”someFunction” include=”custom/f…
| WordPress | 2.5+ requiredTested up to 4.3.0 |
| PHP | false+ required |
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.