Add Tiktok to OBW grow list (#34953)

This commit is contained in:
RJ 2022-10-07 13:50:35 +08:00 committed by GitHub
parent c87f5ce79b
commit c67a0fbe27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,4 @@
Significance: patch
Type: add
Add tiktok plugin to plugins name mapping

View File

@ -59,4 +59,5 @@ export const pluginNames = {
'Pinterest for WooCommerce',
'woocommerce'
),
'tiktok-for-business:alt': __( 'TikTok for WooCommerce', 'woocommerce' ),
};

View File

@ -0,0 +1,4 @@
Significance: minor
Type: update
Add Tiktok to free grow extensions list

View File

@ -398,6 +398,8 @@ class OnboardingProfile extends \WC_REST_Data_Controller {
'facebook-for-woocommerce',
'google-listings-and-ads',
'mailpoet',
'tiktok-for-business',
'tiktok-for-business:alt'
),
'type' => 'string',
),

View File

@ -39,6 +39,7 @@ class DefaultFreeExtensions {
self::get_plugin( 'mailpoet' ),
self::get_plugin( 'google-listings-and-ads' ),
self::get_plugin( 'facebook-for-woocommerce' ),
self::get_plugin( 'tiktok-for-business:alt' ),
],
],
[
@ -669,6 +670,18 @@ class DefaultFreeExtensions {
],
'is_built_by_wc' => false,
],
'tiktok-for-business:alt' => [
'name' => __( 'TikTok for WooCommerce', 'woocommerce' ),
'image_url' => plugins_url( '/assets/images/onboarding/tiktok.svg', WC_PLUGIN_FILE ),
'description' => sprintf(
/* translators: 1: opening product link tag. 2: closing link tag */
__( 'Create ad campaigns and reach one billion global users with %1$sTikTok for WooCommerce%2$s', 'woocommerce' ),
'<a href="https://woocommerce.com/products/tiktok-for-woocommerce" target="_blank">',
'</a>'
),
'manage_url' => 'admin.php?page=tiktok',
'is_built_by_wc' => false,
],
);
$plugin = $plugins[ $slug ];