PluginProbe
WebberZone Top 10 — Popular Posts / 4.5.2
WebberZone Top 10 — Popular Posts v4.5.2
4.5.2 4.5.1 4.5.0 4.4.3 4.4.2 4.4.1 4.4.0 4.3.4 4.3.3 4.3.2 4.3.1 4.3.0 trunk 1.0 1.0.1 1.1 1.2 1.3 1.4 1.4.1 1.5 1.5.1 1.5.2 1.5.3 1.6 All 118 releases
← All changes | includes/admin/class-settings.php +34 -0 4.5.1 → 4.5.2 View file →
@@ -137,8 +137,11 @@
137 137 'modified_field' => esc_html__( 'Modified from default setting', 'top-10' ),
138 138 'modified_legend' => esc_html__( 'Setting modified from its default value', 'top-10' ),
139 139 'default_label' => esc_html__( 'Default', 'top-10' ),
140 140 'default_none' => esc_html__( 'None', 'top-10' ),
141 + 'repeater_move_up' => esc_html__( 'Move item up', 'top-10' ),
142 + 'repeater_move_down' => esc_html__( 'Move item down', 'top-10' ),
143 + 'repeater_remove_item' => esc_html__( 'Remove item', 'top-10' ),
141 144 );
142 145
143 146 /**
144 147 * Filter the array containing the settings' sections.
@@ -217,10 +220,12 @@
217 220 public static function get_defaults() {
218 221 return array(
219 222 'features_header' => '',
220 223 'features_display_header' => '',
224 + 'features_performance_header' => '',
221 225 'enable_blocks' => 1,
222 226 'enable_legacy_widgets' => 1,
227 + 'enable_rest_api' => 1,
223 228 'enable_query_block' => 1,
224 229 'enable_featured_image_block' => 1,
225 230 'enable_popular_posts_pro_block' => 1,
226 231 'enable_page_builders' => 1,
@@ -231,9 +236,11 @@
231 236 'enable_sitewide_tracking' => 1,
232 237 'features_data_header' => '',
233 238 'enable_daily_table_rollup' => 1,
234 239 'features_admin_header' => '',
240 + 'features_api_header' => '',
235 241 'enable_pro_dashboard_widgets' => 1,
242 + 'enable_lazy_load' => 1,
236 243 'cache' => 1,
237 244 'cache_time' => HOUR_IN_SECONDS,
238 245 'lazy_load' => 0,
239 246 'uninstall_clean_options' => 1,
@@ -1411,8 +1418,22 @@
1411 1418 'type' => 'checkbox',
1412 1419 'default' => 1,
1413 1420 'pro' => true,
1414 1421 ),
1422 + 'features_performance_header' => array(
1423 + 'id' => 'features_performance_header',
1424 + 'name' => '<h3>' . esc_html__( 'Performance', 'top-10' ) . '</h3>',
1425 + 'desc' => esc_html__( 'Control optional output performance modules.', 'top-10' ),
1426 + 'type' => 'header',
1427 + ),
1428 + 'enable_lazy_load' => array(
1429 + 'id' => 'enable_lazy_load',
1430 + 'name' => esc_html__( 'Lazy-load module', 'top-10' ),
1431 + 'desc' => esc_html__( 'Loads the lazy-loading module and its REST endpoint. Disable this to remove lazy-loading support, including per-shortcode and per-block lazy_load overrides. Requires REST API endpoints to be enabled.', 'top-10' ),
1432 + 'type' => 'checkbox',
1433 + 'default' => 1,
1434 + 'pro' => true,
1435 + ),
1415 1436 'features_tracking_header' => array(
1416 1437 'id' => 'features_tracking_header',
1417 1438 'name' => '<h3>' . esc_html__( 'Tracking and feeds', 'top-10' ) . '</h3>',
1418 1439 'desc' => esc_html__( 'Control how Top 10 records views and provides popular posts feeds.', 'top-10' ),
@@ -1467,8 +1488,21 @@
1467 1488 'desc' => esc_html__( 'Adds the enhanced Top 10 Pro widgets to the WordPress dashboard.', 'top-10' ),
1468 1489 'type' => 'checkbox',
1469 1490 'default' => 1,
1470 1491 'pro' => true,
1492 + ),
1493 + 'features_api_header' => array(
1494 + 'id' => 'features_api_header',
1495 + 'name' => '<h3>' . esc_html__( 'API integrations', 'top-10' ) . '</h3>',
1496 + 'desc' => esc_html__( 'Control the Top 10 REST API endpoints used by integrations, tracking, blocks, and lazy loading.', 'top-10' ),
1497 + 'type' => 'header',
1498 + ),
1499 + 'enable_rest_api' => array(
1500 + 'id' => 'enable_rest_api',
1501 + 'name' => esc_html__( 'REST API endpoints', 'top-10' ),
1502 + 'desc' => esc_html__( 'Registers the top-10/v1 endpoints for popular posts, tracking, counters, blocks, and lazy loading. Keep enabled if your tracker type is REST-based or if your integrations or blocks use these endpoints.', 'top-10' ),
1503 + 'type' => 'checkbox',
1504 + 'default' => 1,
1471 1505 ),
1472 1506 );
1473 1507
1474 1508 /**