Commit 7cc5afb036d for woocommerce
commit 7cc5afb036d1da7d492d24b88193e37a339e96c7
Author: Brian Coords <bacoords@gmail.com>
Date: Thu Sep 24 08:28:12 2026 -0700
Update stale developer documentation links (#69022)
* Update stale developer documentation links
* Add changelog entry for developer documentation links
diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md
index 9538ee58999..a6006c03a5f 100644
--- a/.github/CONTRIBUTING.md
+++ b/.github/CONTRIBUTING.md
@@ -4,7 +4,7 @@ WooCommerce powers many online stores across the internet, and your help making
There are many ways to contribute to the project!
-- [Translating strings into your language](https://developer.woocommerce.com/docs/best-practices/localization-translation/translating-woocommerce/).
+- [Translating strings into your language](https://developer.woocommerce.com/docs/contribution/contributing/string-localisation-guidelines/#translating-woocommerce).
- Answering questions on the various WooCommerce communities like the [WP.org support forums](https://wordpress.org/support/plugin/woocommerce/).
- Testing open [issues](https://github.com/woocommerce/woocommerce/issues) or [pull requests](https://github.com/woocommerce/woocommerce/pulls) and sharing your findings in a comment.
- Testing WooCommerce beta versions and release candidates. Those are announced in the [WooCommerce development blog](https://developer.woocommerce.com/blog/).
diff --git a/plugins/woocommerce/changelog/wooplug-6998-stale-developer-docs-links b/plugins/woocommerce/changelog/wooplug-6998-stale-developer-docs-links
new file mode 100644
index 00000000000..3c4f6691247
--- /dev/null
+++ b/plugins/woocommerce/changelog/wooplug-6998-stale-developer-docs-links
@@ -0,0 +1,5 @@
+Significance: patch
+Type: dev
+Comment: Update stale developer documentation links in PHP sources; no merchant-facing change.
+
+
diff --git a/plugins/woocommerce/includes/class-wc-order-query.php b/plugins/woocommerce/includes/class-wc-order-query.php
index b54a68a3f41..3a20e4f976e 100644
--- a/plugins/woocommerce/includes/class-wc-order-query.php
+++ b/plugins/woocommerce/includes/class-wc-order-query.php
@@ -1,7 +1,7 @@
<?php
/**
* Parameter-based Order querying
- * Args and usage: https://developer.woocommerce.com/docs/extensions/core-concepts/wc-get-orders/
+ * Args and usage: https://developer.woocommerce.com/docs/features/orders/wc-get-orders/
*
* @package WooCommerce\Classes
* @version 3.1.0
diff --git a/plugins/woocommerce/includes/class-wc-product-query.php b/plugins/woocommerce/includes/class-wc-product-query.php
index cd7961db42e..f42e839c275 100644
--- a/plugins/woocommerce/includes/class-wc-product-query.php
+++ b/plugins/woocommerce/includes/class-wc-product-query.php
@@ -2,7 +2,7 @@
/**
* Class for parameter-based Product querying
*
- * Args and usage: https://developer.woocommerce.com/docs/extensions/core-concepts/wc-get-products/
+ * Args and usage: https://developer.woocommerce.com/docs/features/products/wc-get-products/
*
* @package WooCommerce\Classes
* @version 3.2.0
diff --git a/plugins/woocommerce/includes/wc-order-functions.php b/plugins/woocommerce/includes/wc-order-functions.php
index 8bf8b3833c2..80b1d2052c7 100644
--- a/plugins/woocommerce/includes/wc-order-functions.php
+++ b/plugins/woocommerce/includes/wc-order-functions.php
@@ -27,7 +27,7 @@ defined( 'ABSPATH' ) || exit;
* This function should be used for order retrieval so that when we move to
* custom tables, functions still work.
*
- * Args and usage: https://developer.woocommerce.com/docs/extensions/core-concepts/wc-get-orders/
+ * Args and usage: https://developer.woocommerce.com/docs/features/orders/wc-get-orders/
*
* @since 2.6.0
* @param array $args Array of args (above).
diff --git a/plugins/woocommerce/includes/wc-product-functions.php b/plugins/woocommerce/includes/wc-product-functions.php
index 3c6d301d84c..c0829188dfd 100644
--- a/plugins/woocommerce/includes/wc-product-functions.php
+++ b/plugins/woocommerce/includes/wc-product-functions.php
@@ -30,7 +30,7 @@ defined( 'ABSPATH' ) || exit;
* This function should be used for product retrieval so that we have a data agnostic
* way to get a list of products.
*
- * Args and usage: https://developer.woocommerce.com/docs/extensions/core-concepts/wc-get-products/
+ * Args and usage: https://developer.woocommerce.com/docs/features/products/wc-get-products/
*
* @since 3.0.0
* @param array $args Array of args (above).
diff --git a/plugins/woocommerce/src/Database/Migrations/CustomOrderTable/CLIRunner.php b/plugins/woocommerce/src/Database/Migrations/CustomOrderTable/CLIRunner.php
index 5675d943833..a8637e91a66 100644
--- a/plugins/woocommerce/src/Database/Migrations/CustomOrderTable/CLIRunner.php
+++ b/plugins/woocommerce/src/Database/Migrations/CustomOrderTable/CLIRunner.php
@@ -98,7 +98,7 @@ class CLIRunner {
sprintf(
// translators: %s - link to testing instructions webpage.
__( 'Custom order table usage is not enabled. If you are testing, you can enable it by following the testing instructions in %s', 'woocommerce' ),
- 'https://developer.woocommerce.com/docs/features/high-performance-order-storage/recipe-book/'
+ 'https://developer.woocommerce.com/docs/features/orders/high-performance-order-storage/recipe-book/'
)
);
}
diff --git a/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableQuery.php b/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableQuery.php
index a9f11ec2a34..d702cb38b5d 100644
--- a/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableQuery.php
+++ b/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableQuery.php
@@ -352,7 +352,7 @@ class OrdersTableQuery {
$date = new \WC_DateTime( "@{$date}", new \DateTimeZone( 'UTC' ) );
$precision = 'second';
} elseif ( ! is_a( $date, 'WC_DateTime' ) ) {
- // For backwards compat (see https://developer.woocommerce.com/docs/extensions/core-concepts/wc-get-orders/#date)
+ // For backwards compat (see https://developer.woocommerce.com/docs/features/orders/wc-get-orders/#date)
// only YYYY-MM-DD is considered for date values. Timestamps do support second precision.
$date = wc_string_to_datetime( date( 'Y-m-d', strtotime( $date ) ) );
$precision = 'day';
@@ -385,7 +385,7 @@ class OrdersTableQuery {
private function local_time_to_gmt_date_query( $dates_raw, $operator ) {
$result = array();
- // Convert YYYY-MM-DD to UTC timestamp. Per https://developer.woocommerce.com/docs/extensions/core-concepts/wc-get-orders/#date only date is relevant (time is ignored).
+ // Convert YYYY-MM-DD to UTC timestamp. Per https://developer.woocommerce.com/docs/features/orders/wc-get-orders/#date only date is relevant (time is ignored).
foreach ( $dates_raw as &$raw_date ) {
$raw_date = is_numeric( $raw_date ) ? $raw_date : strtotime( get_gmt_from_date( date( 'Y-m-d', strtotime( $raw_date ) ) ) );
}
@@ -501,7 +501,7 @@ class OrdersTableQuery {
$date_key = $local_to_gmt_date_keys[ $date_key ];
if ( ! is_numeric( $dates_raw[0] ) && ( ! isset( $dates_raw[1] ) || ! is_numeric( $dates_raw[1] ) ) ) {
- // Only non-numeric args can be considered local time. Timestamps are assumed to be UTC per https://developer.woocommerce.com/docs/extensions/core-concepts/wc-get-orders/#date.
+ // Only non-numeric args can be considered local time. Timestamps are assumed to be UTC per https://developer.woocommerce.com/docs/features/orders/wc-get-orders/#date.
$date_queries[] = array_merge(
array(
'column' => $date_key,