wpsl_thumb_attr

  1. Description
  2. Parameters
  3. Usage
  4. Changelog
  5. Source File
  6. Related

Description

This filter allows you to modify the attributes on the store thumbnail.

The default attributes that are set are the alt text and a wpsl-store-thumb class.

Parameters

$attr - (array) The current thumbnail attributes.

Usage

This example adds a custom-style class to the thumbnail class attributes:

Changelog

Since 2.0

Source File

This filter is located in /frontend/class-frontend.php.

Placement

The code needs to be placed in the functions.php file inside your active theme folder.