| @@ -1258,10 +1258,9 @@ | ||
| 1258 | 1258 | * |
| 1259 | 1259 | * @return array |
| 1260 | 1260 | */ |
| 1261 | 1261 | protected function my_account_page_widget_list() { |
| 1262 | - return [ | |
| 1263 | - | |
| 1262 | + $widgets = [ | |
| 1264 | 1263 | 'account_navigation_edit_shipping' => apply_filters( |
| 1265 | 1264 | 'rtsb/elements/account_navigation_edit_shipping/options', |
| 1266 | 1265 | [ |
| 1267 | 1266 | 'id' => 'account_navigation_edit_shipping', |
| @@ -1278,9 +1277,9 @@ | ||
| 1278 | 1277 | [ |
| 1279 | 1278 | 'id' => 'account_dashboard', |
| 1280 | 1279 | 'title' => esc_html__( 'Account Dashboard', 'shopbuilder' ), |
| 1281 | 1280 | 'category' => 'myaccount_dashboard', |
| 1282 | - 'is_front_page' => 'myaccount_dashboard', | |
| 1281 | + 'is_front_page' => 'all_myaccount_dashboard_inner', | |
| 1283 | 1282 | 'active' => 'on', |
| 1284 | 1283 | 'package' => $this->pro_package(), |
| 1285 | 1284 | 'fields' => [], |
| 1286 | 1285 | ] |
| @@ -1290,9 +1289,9 @@ | ||
| 1290 | 1289 | [ |
| 1291 | 1290 | 'id' => 'account_orders', |
| 1292 | 1291 | 'title' => esc_html__( 'Account Orders', 'shopbuilder' ), |
| 1293 | 1292 | 'category' => 'myaccount_dashboard', |
| 1294 | - 'is_front_page' => 'myaccount_order', | |
| 1293 | + 'is_front_page' => 'all_myaccount_dashboard_inner', | |
| 1295 | 1294 | 'active' => 'on', |
| 1296 | 1295 | 'package' => $this->pro_package(), |
| 1297 | 1296 | 'fields' => [], |
| 1298 | 1297 | ] |
| @@ -1302,9 +1301,9 @@ | ||
| 1302 | 1301 | [ |
| 1303 | 1302 | 'id' => 'account_downloads', |
| 1304 | 1303 | 'title' => esc_html__( 'Account Downloads', 'shopbuilder' ), |
| 1305 | 1304 | 'category' => 'myaccount_dashboard', |
| 1306 | - 'is_front_page' => 'myaccount_downloads', | |
| 1305 | + 'is_front_page' => 'all_myaccount_dashboard_inner', | |
| 1307 | 1306 | 'active' => 'on', |
| 1308 | 1307 | 'package' => $this->pro_package(), |
| 1309 | 1308 | 'fields' => [], |
| 1310 | 1309 | ] |
| @@ -1314,9 +1313,9 @@ | ||
| 1314 | 1313 | [ |
| 1315 | 1314 | 'id' => 'account_billing_address', |
| 1316 | 1315 | 'title' => esc_html__( 'Account Billing Address', 'shopbuilder' ), |
| 1317 | 1316 | 'category' => 'myaccount_dashboard', |
| 1318 | - 'is_front_page' => 'myaccount_address', | |
| 1317 | + 'is_front_page' => 'all_myaccount_dashboard_inner', | |
| 1319 | 1318 | 'active' => 'on', |
| 1320 | 1319 | 'package' => $this->pro_package(), |
| 1321 | 1320 | 'fields' => [], |
| 1322 | 1321 | ] |
| @@ -1326,9 +1325,9 @@ | ||
| 1326 | 1325 | [ |
| 1327 | 1326 | 'id' => 'account_shipping_address', |
| 1328 | 1327 | 'title' => esc_html__( 'Account Shipping Address', 'shopbuilder' ), |
| 1329 | 1328 | 'category' => 'myaccount_dashboard', |
| 1330 | - 'is_front_page' => 'myaccount_address', | |
| 1329 | + 'is_front_page' => 'all_myaccount_dashboard_inner', | |
| 1331 | 1330 | 'active' => 'on', |
| 1332 | 1331 | 'package' => $this->pro_package(), |
| 1333 | 1332 | 'fields' => [], |
| 1334 | 1333 | ] |
| @@ -1338,9 +1337,9 @@ | ||
| 1338 | 1337 | [ |
| 1339 | 1338 | 'id' => 'account_address_description', |
| 1340 | 1339 | 'title' => esc_html__( 'Account Address Description', 'shopbuilder' ), |
| 1341 | 1340 | 'category' => 'myaccount_dashboard', |
| 1342 | - 'is_front_page' => 'myaccount_address', | |
| 1341 | + 'is_front_page' => 'all_myaccount_dashboard_inner', | |
| 1343 | 1342 | 'active' => 'on', |
| 1344 | 1343 | 'package' => $this->pro_package(), |
| 1345 | 1344 | 'fields' => [], |
| 1346 | 1345 | ] |
| @@ -1350,9 +1349,9 @@ | ||
| 1350 | 1349 | [ |
| 1351 | 1350 | 'id' => 'account_details', |
| 1352 | 1351 | 'title' => esc_html__( 'Account Edit / Details', 'shopbuilder' ), |
| 1353 | 1352 | 'category' => 'myaccount_dashboard', |
| 1354 | - 'is_front_page' => 'myaccount_edit_details', | |
| 1353 | + 'is_front_page' => 'all_myaccount_dashboard_inner', | |
| 1355 | 1354 | 'active' => 'on', |
| 1356 | 1355 | 'package' => $this->pro_package(), |
| 1357 | 1356 | 'fields' => [], |
| 1358 | 1357 | ] |
| @@ -1362,9 +1361,9 @@ | ||
| 1362 | 1361 | [ |
| 1363 | 1362 | 'id' => 'account_order_status', |
| 1364 | 1363 | 'title' => esc_html__( 'Account Order Status', 'shopbuilder' ), |
| 1365 | 1364 | 'category' => 'myaccount_dashboard', |
| 1366 | - 'is_front_page' => 'myaccount_orders_details', | |
| 1365 | + 'is_front_page' => 'all_myaccount_dashboard_inner', | |
| 1367 | 1366 | 'active' => 'on', |
| 1368 | 1367 | 'package' => $this->pro_package(), |
| 1369 | 1368 | 'fields' => [], |
| 1370 | 1369 | ] |
| @@ -1374,9 +1373,9 @@ | ||
| 1374 | 1373 | [ |
| 1375 | 1374 | 'id' => 'account_order_details_download', |
| 1376 | 1375 | 'title' => esc_html__( 'Account Order Download', 'shopbuilder' ), |
| 1377 | 1376 | 'category' => 'myaccount_dashboard', |
| 1378 | - 'is_front_page' => 'myaccount_orders_details', | |
| 1377 | + 'is_front_page' => 'all_myaccount_dashboard_inner', | |
| 1379 | 1378 | 'active' => 'on', |
| 1380 | 1379 | 'package' => $this->pro_package(), |
| 1381 | 1380 | 'fields' => [], |
| 1382 | 1381 | ] |
| @@ -1386,9 +1385,9 @@ | ||
| 1386 | 1385 | [ |
| 1387 | 1386 | 'id' => 'account_order_details_note', |
| 1388 | 1387 | 'title' => esc_html__( 'Account Order Note', 'shopbuilder' ), |
| 1389 | 1388 | 'category' => 'myaccount_dashboard', |
| 1390 | - 'is_front_page' => 'myaccount_orders_details', | |
| 1389 | + 'is_front_page' => 'all_myaccount_dashboard_inner', | |
| 1391 | 1390 | 'active' => 'on', |
| 1392 | 1391 | 'package' => $this->pro_package(), |
| 1393 | 1392 | 'fields' => [], |
| 1394 | 1393 | ] |
| @@ -1398,9 +1397,9 @@ | ||
| 1398 | 1397 | [ |
| 1399 | 1398 | 'id' => 'account_order_details_table', |
| 1400 | 1399 | 'title' => esc_html__( 'Account Order Table', 'shopbuilder' ), |
| 1401 | 1400 | 'category' => 'myaccount_dashboard', |
| 1402 | - 'is_front_page' => 'myaccount_orders_details', | |
| 1401 | + 'is_front_page' => 'all_myaccount_dashboard_inner', | |
| 1403 | 1402 | 'active' => 'on', |
| 1404 | 1403 | 'package' => $this->pro_package(), |
| 1405 | 1404 | 'fields' => [], |
| 1406 | 1405 | ] |
| @@ -1410,9 +1409,9 @@ | ||
| 1410 | 1409 | [ |
| 1411 | 1410 | 'id' => 'account_order_details_order_again', |
| 1412 | 1411 | 'title' => esc_html__( 'Account Order Again Button', 'shopbuilder' ), |
| 1413 | 1412 | 'category' => 'myaccount_dashboard', |
| 1414 | - 'is_front_page' => 'myaccount_orders_details', | |
| 1413 | + 'is_front_page' => 'all_myaccount_dashboard_inner', | |
| 1415 | 1414 | 'active' => 'on', |
| 1416 | 1415 | 'package' => $this->pro_package(), |
| 1417 | 1416 | 'fields' => [], |
| 1418 | 1417 | ] |
| @@ -1422,9 +1421,9 @@ | ||
| 1422 | 1421 | [ |
| 1423 | 1422 | 'id' => 'account_order_details_order_shipping', |
| 1424 | 1423 | 'title' => esc_html__( 'Account Order Shipping', 'shopbuilder' ), |
| 1425 | 1424 | 'category' => 'myaccount_dashboard', |
| 1426 | - 'is_front_page' => 'myaccount_orders_details', | |
| 1425 | + 'is_front_page' => 'all_myaccount_dashboard_inner', | |
| 1427 | 1426 | 'active' => 'on', |
| 1428 | 1427 | 'package' => $this->pro_package(), |
| 1429 | 1428 | 'fields' => [], |
| 1430 | 1429 | ] |
| @@ -1434,9 +1433,9 @@ | ||
| 1434 | 1433 | [ |
| 1435 | 1434 | 'id' => 'account_order_details_order_billing', |
| 1436 | 1435 | 'title' => esc_html__( 'Account Order Billing', 'shopbuilder' ), |
| 1437 | 1436 | 'category' => 'myaccount_dashboard', |
| 1438 | - 'is_front_page' => 'myaccount_orders_details', | |
| 1437 | + 'is_front_page' => 'all_myaccount_dashboard_inner', | |
| 1439 | 1438 | 'active' => 'on', |
| 1440 | 1439 | 'package' => $this->pro_package(), |
| 1441 | 1440 | 'fields' => [], |
| 1442 | 1441 | ] |
| @@ -1446,9 +1445,9 @@ | ||
| 1446 | 1445 | [ |
| 1447 | 1446 | 'id' => 'account_edit_billing_address', |
| 1448 | 1447 | 'title' => esc_html__( 'Edit Billing Address', 'shopbuilder' ), |
| 1449 | 1448 | 'category' => 'myaccount_dashboard', |
| 1450 | - 'is_front_page' => 'myaccount_edit_billing_address', | |
| 1449 | + 'is_front_page' => 'all_myaccount_dashboard_inner', | |
| 1451 | 1450 | 'active' => 'on', |
| 1452 | 1451 | 'package' => $this->pro_package(), |
| 1453 | 1452 | 'fields' => [], |
| 1454 | 1453 | ] |
| @@ -1458,9 +1457,9 @@ | ||
| 1458 | 1457 | [ |
| 1459 | 1458 | 'id' => 'account_edit_shipping_address', |
| 1460 | 1459 | 'title' => esc_html__( 'Edit Shipping Address', 'shopbuilder' ), |
| 1461 | 1460 | 'category' => 'myaccount_dashboard', |
| 1462 | - 'is_front_page' => 'myaccount_edit_shipping_address', | |
| 1461 | + 'is_front_page' => 'all_myaccount_dashboard_inner', | |
| 1463 | 1462 | 'active' => 'on', |
| 1464 | 1463 | 'package' => $this->pro_package(), |
| 1465 | 1464 | 'fields' => [], |
| 1466 | 1465 | ] |
| @@ -1465,8 +1464,10 @@ | ||
| 1465 | 1464 | 'fields' => [], |
| 1466 | 1465 | ] |
| 1467 | 1466 | ), |
| 1468 | 1467 | ]; |
| 1468 | + | |
| 1469 | + return apply_filters( 'rtsb/core/elements/my_account/widget_list', $widgets ); | |
| 1469 | 1470 | } |
| 1470 | 1471 | |
| 1471 | 1472 | /*** |
| 1472 | 1473 | * @return array |