-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Labels
Description
Would love to see an integration for widget settings into existing WP widgets.
This is where settings could be added (I think), if you match the existing ID:
client-dash/core/customize/class-clientdash-customize.php
Lines 332 to 361 in 775f144
| /** | |
| * Extra dashboard widgets. | |
| * | |
| * @since 2.0.0 | |
| * @access private | |
| */ | |
| public static function get_custom_dashboard_widgets() { | |
| /** | |
| * Extra, re-usable dashboard widgets. | |
| * | |
| * @since 2.0.0 | |
| */ | |
| $widgets = apply_filters( 'cd_customize_dashboard_widgets', array( | |
| array( | |
| 'id' => 'text', | |
| 'label' => __( 'Text/HTML', 'client-dash' ), | |
| 'settings' => array( | |
| array( | |
| 'name' => 'text', | |
| 'label' => __( 'Text or HTML', 'client-dash' ), | |
| 'type' => 'textarea', | |
| ), | |
| ), | |
| 'callback' => 'clientdash_custom_widget_text', | |
| ), | |
| ) ); | |
| return $widgets; | |
| } |