Home/Hooks/attachment_innerHTML
FILTER

attachment_innerHTML

WordPress filter hook

wp-includes/deprecated.php
Line 2006
2 Parameters
View Source

Usage

add_filter( 'attachment_innerHTML', 'your_callback_function', 10, 2 );

Filter Callback:

function your_callback_function( $innerHTML, $post->ID ) {
    // Your code here
    return $innerHTML;
}

Parameters

$innerHTML

Parameter 1

$post->ID

Parameter 2

🔄 Filter Hook

Filter hooks allow you to modify data before it is saved to the database or displayed on the screen. Filters must return a value.