Automattic\WooCommerce\Admin\Marketing

InstalledExtensions::get_tiktok_extension_data()protected staticWC 1.0

Get TikTok for WooCommerce extension data.

Method of the class: InstalledExtensions{}

No Hooks.

Return

Array|true|false.

Usage

$result = InstalledExtensions::get_tiktok_extension_data();

InstalledExtensions::get_tiktok_extension_data() code WC 7.1.0

protected static function get_tiktok_extension_data() {
	$slug = 'tiktok-for-business';

	if ( ! PluginsHelper::is_plugin_installed( $slug ) ) {
		return false;
	}

	$data         = self::get_extension_base_data( $slug );
	$data['icon'] = WC_ADMIN_IMAGES_FOLDER_URL . '/marketing/tiktok.jpg';

	if ( 'activated' === $data['status'] ) {
		if ( false !== get_option( 'tt4b_access_token' ) ) {
			$data['status'] = 'configured';
		}

		$data['settingsUrl'] = admin_url( 'admin.php?page=tiktok' );
		$data['docsUrl']     = 'https://woocommerce.com/document/tiktok-for-woocommerce/';
		$data['supportUrl']  = 'https://ads.tiktok.com/athena/user-feedback/?identify_key=6a1e079024806640c5e1e695d13db80949525168a052299b4970f9c99cb5ac78';
	}

	return $data;
}