On every request send by the MyYoast_Api_Request class the versions of all installed plugins should be added as headers.
The header key should be the plugin slug with -version appended. So yoast-seo-wordpress-premium becomes yoast-seo-wordpress-premium-version. The header value should be the plugin version.
Each active extension of ours, including both free and premium, should be added as a separate header. These can be passed to wp_remote_request as part of $args in the headers key.
Implementation is suggested in the enrich_request_arguments function.
For example. If I have free installed at version 9.5 and local installed at version 9.4.1 then the following headers should be send:
yoast-seo-wordpress-version: 9.5
yoast-seo-local-version: 9.4.1
parent #12136
On every request send by the
MyYoast_Api_Requestclass the versions of all installed plugins should be added as headers.The header key should be the plugin slug with
-versionappended. Soyoast-seo-wordpress-premiumbecomesyoast-seo-wordpress-premium-version. The header value should be the plugin version.Each active extension of ours, including both free and premium, should be added as a separate header. These can be passed to
wp_remote_requestas part of$argsin theheaderskey.Implementation is suggested in the
enrich_request_argumentsfunction.For example. If I have free installed at version 9.5 and local installed at version 9.4.1 then the following headers should be send:
parent #12136