Replace deprecated WC_ADMIN_IMAGES_FOLDER_URL with plugins_url function call.

Co-authored-by: Jeremy Pry <JPry@users.noreply.github.com>
This commit is contained in:
Gan Eng Chin 2023-06-30 00:29:09 +08:00 committed by GitHub
parent bb8079def8
commit f36b00021b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -398,7 +398,7 @@ class InstalledExtensions {
}
$data = self::get_extension_base_data( $slug );
$data['icon'] = WC_ADMIN_IMAGES_FOLDER_URL . '/marketing/klaviyo.png';
$data['icon'] = plugins_url( 'assets/images/marketing/klaviyo.png', WC_PLUGIN_FILE );
if ( 'activated' === $data['status'] ) {
$klaviyo_options = get_option( 'klaviyo_settings' );