gpp_popup_title
Description
Filter the popup’s human-readable title. This value is used as the popup dialog’s accessible name (aria-label), the iframe element’s title attribute, and the iframe document’s
Usage
Applied globally
add_filter( 'gpp_popup_title', 'my_custom_function' );Parameters
$title
string
The popup title.
$feed
array<string, mixed>
The feed array.
Examples
Set a custom accessible name for a specific popup
add_filter( 'gpp_popup_title', function( $title, $feed ) {
if ( (int) $feed['id'] === 5 ) {
return 'Age Verification';
}
return $title;
}, 10, 2 );Since
1.0.15Hook added.