Title: Can we use PHP code?
Last modified: February 5, 2018

---

# Can we use PHP code?

 *  Resolved [widhimuttaqien](https://wordpress.org/support/users/widhimuttaqien/)
 * (@widhimuttaqien)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/can-we-use-php-code-2/)
 * Hi Aakash
 * Just one question. I’ve seen HTML and JS code examples, but no PHP. Just need
   to know whether we can use PHP code for the custom shortcode.
 * Thank you.

Viewing 1 replies (of 1 total)

 *  Plugin Author [vaakash](https://wordpress.org/support/users/vaakash/)
 * (@vaakash)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/can-we-use-php-code-2/#post-9939934)
 * Hi, No PHP cannot be used as shortcode content. Using PHP as shortcode content
   can lead to security exploitation. Hence the reason. Thanks.

Viewing 1 replies (of 1 total)

The topic ‘Can we use PHP code?’ is closed to new replies.

 * ![](https://ps.w.org/shortcoder/assets/icon.svg?rev=2222236)
 * [Shortcoder — Create Shortcodes for Anything](https://wordpress.org/plugins/shortcoder/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/shortcoder/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/shortcoder/)
 * [Active Topics](https://wordpress.org/support/plugin/shortcoder/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/shortcoder/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/shortcoder/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [vaakash](https://wordpress.org/support/users/vaakash/)
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/can-we-use-php-code-2/#post-9939934)
 * Status: resolved