Title: Populate Inspector Control Options with PHP Array
Last modified: August 15, 2022

---

# Populate Inspector Control Options with PHP Array

 *  Resolved [chronosphere](https://wordpress.org/support/users/chronosphere/)
 * (@chronosphere)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/populate-inspector-control-options-with-php-array/)
 * I am trying to create a select control in the inspector panel that uses a PHP
   array generated from a database query as the control’s options. If there isn’t
   any way to programmatically generate inspector controls, that should be a future
   feature.

Viewing 1 replies (of 1 total)

 *  Plugin Author [nK](https://wordpress.org/support/users/nko/)
 * (@nko)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/populate-inspector-control-options-with-php-array/#post-15933698)
 * Hey.
 * I think you have to create a custom control, which will generate select oprions
   for your needs [https://lazyblocks.com/documentation/examples/create-custom-control/](https://lazyblocks.com/documentation/examples/create-custom-control/)
 * Regards, nK.

Viewing 1 replies (of 1 total)

The topic ‘Populate Inspector Control Options with PHP Array’ is closed to new replies.

 * ![](https://ps.w.org/lazy-blocks/assets/icon-256x256.png?rev=2584676)
 * [Custom Block Builder - Lazy Blocks](https://wordpress.org/plugins/lazy-blocks/)
 * [Support Threads](https://wordpress.org/support/plugin/lazy-blocks/)
 * [Active Topics](https://wordpress.org/support/plugin/lazy-blocks/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/lazy-blocks/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/lazy-blocks/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [nK](https://wordpress.org/support/users/nko/)
 * Last activity: [3 years, 9 months ago](https://wordpress.org/support/topic/populate-inspector-control-options-with-php-array/#post-15933698)
 * Status: resolved