You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -162,22 +163,22 @@ function settings_page_callback() {
162
163
163
164
functionregister_settings() {
164
165
register_setting(
165
-
'reading',
166
+
GDRNB_PLUGIN_SLUG . '_responsive_nav', // Custom settings group
166
167
GDRNB_PLUGIN_SLUG . '_responsive_nav_breakpoint',
167
168
array(
168
169
'type' => 'integer',
169
-
'description' => __( 'The breakpoint at which the navigation will switch to mobile view', 'getdave-responsive-navigation-block' ),
170
+
'description' => __( 'The breakpoint value at which the navigation will switch.', 'getdave-responsive-navigation-block' ),
170
171
'sanitize_callback' => 'absint',
171
172
'default' => GDRNB_DEFAULT_BREAKPOINT,
172
173
)
173
174
);
174
175
175
176
register_setting(
176
-
'reading',
177
+
GDRNB_PLUGIN_SLUG . '_responsive_nav', // Custom settings group
177
178
GDRNB_PLUGIN_SLUG . '_responsive_nav_unit',
178
179
array(
179
180
'type' => 'string',
180
-
'description' => __( 'The unit of the navigation breakpoint', 'getdave-responsive-navigation-block' ),
181
+
'description' => __( 'The unit used for the breakpoint.', 'getdave-responsive-navigation-block' ),
181
182
'sanitize_callback' => 'sanitize_text_field',
182
183
'default' => GDRNB_DEFAULT_UNIT,
183
184
)
@@ -207,6 +208,7 @@ function register_settings() {
207
208
);
208
209
}
209
210
211
+
210
212
functionsettings_section_callback() {
211
213
echo'<p>' . esc_html__( 'Set the breakpoint and unit at which the special Navigation block variations "Desktop Navigation" and "Mobile Navigation" will switch.', 'getdave-responsive-navigation-block' ) . '</p>';
212
214
echo'<p>' . esc_html__( '⚠️ Please note: setting this value will have no effect on the standard Navigation block.', 'getdave-responsive-navigation-block' ) . '</p>';
0 commit comments