File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ public function add_googleanalytics_configs($event)
119119 'lang ' => 'ACP_GOOGLEANALYTICS_TAG ' ,
120120 'validate ' => 'int ' ,
121121 'type ' => 'select ' ,
122- 'function ' => 'build_select ' ,
122+ 'function ' => [ $ this , 'build_select ' ] ,
123123 'params ' => [[
124124 0 => 'ACP_GA_ANALYTICS_TAG ' ,
125125 1 => 'ACP_GA_GTAGS_TAG ' ,
@@ -171,4 +171,16 @@ public function validate_googleanalytics_id($event)
171171 // Update error event data
172172 $ event ['error ' ] = $ error ;
173173 }
174+
175+ /**
176+ * Get select options for ACP
177+ *
178+ * @param array $options
179+ * @param bool|int|string $default
180+ * @return array
181+ */
182+ public function build_select (array $ options , bool |int |string $ default ): array
183+ {
184+ return ['options ' => build_select ($ options , $ default )];
185+ }
174186}
You can’t perform that action at this time.
0 commit comments