Clanbite Avatars Since 1.2.0

apply_filters( 'clanbite_avatar_interactivity_img_attributes', array $img_attrs, array $args )

Filter image attributes for Interactivity API contexts.

Filter PHP

Parameters

$img_attrs (array)

Image attributes.

$args (array)

Avatar arguments.

Example

add_filter( 'clanbite_avatar_interactivity_img_attributes', function ( $img_attrs, $args ) {
	// Change $img_attrs here.
	return $img_attrs;
}, 10, 2 );

Defined in inc/avatar-helpers.php

Changelog

VersionDescription
1.2.0Introduced.