We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 23a603e commit ff53740Copy full SHA for ff53740
class-grid.php
@@ -107,6 +107,13 @@ public function get_fields() : array {
107
*/
108
$theme_choices = apply_filters( 'hogan/module/grid/themes', [] );
109
110
+ /**
111
+ * Filters the default theme choice in the Grid module
112
+ *
113
+ * @param string $choice Default theme.
114
+ */
115
+ $theme_default_choice = apply_filters( 'hogan/module/grid/themes/default', '' );
116
+
117
/**
118
* Filters if the theme should support grid sizes.
119
*
@@ -138,7 +145,7 @@ public function get_fields() : array {
138
145
'id' => '',
139
146
],
140
147
'choices' => $theme_choices,
141
- 'default_value' => '',
148
+ 'default_value' => $theme_default_choice,
142
149
'allow_null' => 1,
143
150
'multiple' => 0,
144
151
'ui' => 0,
0 commit comments