Skip to content

Commit cfa8c87

Browse files
committed
move setting registration
1 parent 7d01e08 commit cfa8c87

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/editor-settings.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,18 @@ function __construct() {
3030
* @return void
3131
*/
3232
public function register_settings() {
33+
register_setting(
34+
'stackable_editor_settings',
35+
'stackable_hide_cimo_notice',
36+
array(
37+
'type' => 'boolean',
38+
'description' => __( 'Hides the Cimo download notice.', STACKABLE_I18N ),
39+
'sanitize_callback' => 'rest_sanitize_boolean',
40+
'show_in_rest' => true,
41+
'default' => false,
42+
)
43+
);
44+
3345
register_setting(
3446
'stackable_editor_settings',
3547
'stackable_block_states',

0 commit comments

Comments
 (0)