Update woocommerce_suggest_jetpack filter description (#38501)

* Update woocommerce_suggest_jetpack filter description

* Add changelog

* Update filter description
This commit is contained in:
Chi-Hsuan Huang 2023-05-29 15:21:24 +08:00 committed by GitHub
parent f937a3e61b
commit 340d74cdba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -0,0 +1,4 @@
Significance: patch
Type: dev
Update woocommerce_suggest_jetpack filter description

View File

@ -80,7 +80,9 @@ class OnboardingFreeExtensions extends WC_REST_Data_Controller {
public function get_available_extensions( $request ) {
$extensions = RemoteFreeExtensions::get_extensions();
/**
* Remove Jetpack when woocommerce_suggest_jetpack is false.
* Allows removing Jetpack suggestions from WooCommerce Admin when false.
*
* In this instance it is removed from the list of extensions suggested in the Onboarding Profiler. This list is first retrieved from the WooCommerce.com API, then if a plugin with the 'jetpack' slug is found, it is removed.
*
* @since 7.8
*/