apply_filters( "cp_attributes_{$context}", string[] $attrs, string $element )

Filters the attribute array, specifically using context.


Description

The dynamic portion of the hook name, $context, refers to the context.


Parameters

$attrs

Key is attribute name, value is attribute value.

$element

The HTML element the attributes are for.


Source

File: wp-includes/formatting.php

View on GitHub


Changelog

Changelog
Version Description
CP-1.5.0 Introduced. CP-1.5.0