Title: PHP in widgets
Last modified: March 29, 2019

---

# PHP in widgets

 *  Resolved [apolakos](https://wordpress.org/support/users/apolakos/)
 * (@apolakos)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/php-in-widgets/)
 * Can you use php in the dashboard HTML widgets? I tried, but it just rendered 
   the php code. I’d like to extend the use of the widgets (only show certain things
   if a user has permission to a custom post type, etc..)

Viewing 1 replies (of 1 total)

 *  Plugin Author [David Vongries](https://wordpress.org/support/users/davidvongries/)
 * (@davidvongries)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/php-in-widgets/#post-11373140)
 * Hi [@apolakos](https://wordpress.org/support/users/apolakos/),
 * unfortunately, that’s not possible.
 * Best,
    David

Viewing 1 replies (of 1 total)

The topic ‘PHP in widgets’ is closed to new replies.

 * ![](https://ps.w.org/ultimate-dashboard/assets/icon-256x256.png?rev=2859260)
 * [Ultimate Dashboard - Custom WordPress Dashboard](https://wordpress.org/plugins/ultimate-dashboard/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ultimate-dashboard/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ultimate-dashboard/)
 * [Active Topics](https://wordpress.org/support/plugin/ultimate-dashboard/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ultimate-dashboard/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ultimate-dashboard/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [David Vongries](https://wordpress.org/support/users/davidvongries/)
 * Last activity: [7 years, 2 months ago](https://wordpress.org/support/topic/php-in-widgets/#post-11373140)
 * Status: resolved