attachment_icon

attachment_icon

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('attachment_icon') is found 1 times:

  • /wp-includes/deprecated.php line 1980
    1976
    1977
    1978
    1979
    1980
    1981
    1982
    1983
    1984
    1985
    1986
        $post_title = esc_attr($post->post_title);
     
        $icon = "<img src='$src' title='$post_title' alt='$post_title' $constraint/>";
     
        return apply_filters( 'attachment_icon', $icon, $post->ID );
    }
     
    /**
     * Retrieve HTML content of image element.
     *
     * @since 2.0.0