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
'desc' => esc_html__( 'The following settings affect the permalinks of the knowledge base. These are set when registering the custom post type and taxonomy. Please visit the Permalinks page in the Settings menu to refresh permalinks if you get 404 errors.', 'knowledgebase' ),
355
357
'type' => 'header',
356
358
),
357
359
'kb_slug' => array(
358
360
'id' => 'kb_slug',
359
361
'name' => esc_html__( 'Knowledge Base slug', 'knowledgebase' ),
360
362
'desc' => esc_html__( 'This will set the opening path of the URL of the knowledge base and is set when registering the custom post type', 'knowledgebase' ),
'desc' => esc_html__( 'This slug forms part of the URL for product pages when Multi-Product Mode is enabled. The value is used when registering the custom taxonomy.', 'knowledgebase' ),
'desc' => esc_html__( 'Each section is a section of the knowledge base. This setting is used when registering the custom section and forms a part of the URL when browsing section archives', 'knowledgebase' ),
'desc' => esc_html__( 'Each article can have multiple tags. This setting is used when registering the custom tag and forms a part of the URL when browsing tag archives', 'knowledgebase' ),
'desc' => esc_html__( 'Cache the output of the queries to speed up retrieval of the knowledgebase. Recommended for large knowledge bases', 'knowledgebase' ),
'name' => esc_html__( 'Delete options on uninstall', 'knowledgebase' ),
402
441
'desc' => esc_html__( 'Check this box to delete the settings on this page when the plugin is deleted via the Plugins page in your WordPress Admin', 'knowledgebase' ),
403
442
'type' => 'checkbox',
404
-
'options' => true,
443
+
'default' => true,
405
444
),
406
445
'uninstall_data' => array(
407
446
'id' => 'uninstall_data',
408
447
'name' => esc_html__( 'Delete all content on uninstall', 'knowledgebase' ),
409
448
'desc' => esc_html__( 'Check this box to delete all the posts, categories and tags created by the plugin. There is no way to restore the data if you choose this option', 'knowledgebase' ),
/* translators: 1: Opening link tag, 2: Closing link tag. */
431
470
'desc' => sprintf( esc_html__( 'The knowledge base articles have a default feed. This option will disable the feed. You might need to %1$srefresh your permalinks%2$s when changing this option.', 'knowledgebase' ), '<a href="' . admin_url( 'options-permalink.php' ) . '" target="_blank">', '</a>' ),
432
471
'type' => 'checkbox',
433
-
'options' => false,
472
+
'default' => false,
434
473
),
435
474
);
436
475
@@ -468,7 +507,7 @@ public static function settings_output() {
'desc' => esc_html__( 'This option allows you to create multi-level knowledge bases. This works in conjunction with the inbuilt styles. Set to 1 to lay out the top level sections in a grid. Set to 2 to lay out the second level categories in the grid. This is great if you have multiple products and want to create separate knowledge bases for each of them. The default option is 2 and was the behaviour of this plugin before v1.5.0.', 'knowledgebase' ),
470
509
'type' => 'number',
471
-
'options' => '2',
510
+
'default' => '2',
472
511
'size' => 'small',
473
512
'min' => '1',
474
513
'max' => '5',
@@ -478,35 +517,35 @@ public static function settings_output() {
'desc' => esc_html__( 'If selected, the number of articles will be displayed in an orange circle next to the header. You can override the color by styling wzkb_section_count', 'knowledgebase' ),
'desc' => esc_html__( 'If selected, sections with no articles will also be displayed', 'knowledgebase' ),
501
540
'type' => 'checkbox',
502
-
'options' => false,
541
+
'default' => false,
503
542
),
504
543
'limit' => array(
505
544
'id' => 'limit',
506
545
'name' => esc_html__( 'Max articles per section', 'knowledgebase' ),
507
546
'desc' => esc_html__( 'Enter the number of articles that should be displayed in each section when viewing the knowledge base. After this limit is reached, the footer is displayed with the more link to view the category.', 'knowledgebase' ),
508
547
'type' => 'number',
509
-
'options' => '5',
548
+
'default' => '5',
510
549
'size' => 'small',
511
550
'min' => '1',
512
551
'max' => '500',
@@ -516,14 +555,14 @@ public static function settings_output() {
'desc' => esc_html__( 'Add the sidebar of your theme into the inbuilt templates for archive, sections and search. Activate this option if your theme does not already include this.', 'knowledgebase' ),
518
557
'type' => 'checkbox',
519
-
'options' => false,
558
+
'default' => false,
520
559
),
521
560
'show_related_articles' => array(
522
561
'id' => 'show_related_articles',
523
562
'name' => esc_html__( 'Show related articles', 'knowledgebase' ),
524
563
'desc' => esc_html__( 'Add related articles at the bottom of the knowledge base article. Only works when using the inbuilt template.', 'knowledgebase' ),
0 commit comments