Execute arbitrary, reusable PHP code in posts, pages, comments, widgets and RSS feeds using shortcodes in a safe and easy way
WordPress menu Tools > Shortcode Exec PHP
The shortcode will not be handled and will appear unprocessed.
Users with manage_options (single user) or manage_network (multi user) capability (administrators).
Anyone who can create or modify posts, pages and/or widgets or can write comments. Shortcode execution in widgets, excerpts, comments and RSS feeds is disabled by default (unless another plugin or your theme does enable it). It is possible to restrict shortcode execution in posts and pages based on the capabilities of the post or page author (since version 1.18).
Because the PHP eval function is used, errors cannot be handled unfortunately, so test your code thoroughly.
This can happen if the PCRE backtrack value is too low. Try increasing it using the plugin settings.
The shortcode name, options and PHP code are stored as WordPress options.
Indirectly, by using default values.
No, omit both
Yes, if you enclose the HTML code with
The post or page author has insufficient privileges to execute shortcodes.
This means there is an error in your shortcode definition on line xxx.
Note that your code is not directly executed in the WordPress environment, but in a function. This means for example that a global $wpdb; is needed to access the database class.
This plugin is not supported anymore
Requires: 3.1 or higher
Compatible up to: 3.8.3
Last Updated: 2014-4-18
0 of 2 support threads in the last two months have been resolved.
Got something to say? Need help?