WordPress.org
Showcase
Plugins
Themes
Hosting
News
Resources
Learn WordPress
Documentation
Education
Forums
Developers
Blocks
Patterns
Photos
Openverse
↗
︎
WordPress.tv
↗
︎
About
About WordPress
Make WordPress
Events
Five for the Future
Enterprise
Gutenberg
↗
︎
Job Board
↗
︎
Swag
↗
︎
Get WordPress
Search Trac
Get WordPress
Make WordPress Core
Blog
Handbook
Tickets
Components
Browse Source
Trac Timeline
Create a New Ticket
Search:
Login
Notifications
Context Navigation
Back to Ticket #16795
Ticket #16795
: wp-image.php
File wp-image.php,
148 bytes
(added by
hakre
,
16 years ago
)
Plugin Variant - Works as MU-Plugin as well
Line
1
<?php
2
# Plugin Name: wp-image class
3
4
$class
=
'wp-image'
;
5
6
add_filter
(
'get_image_tag_class'
,
function
(
$c
)
use
(
$class
){
return
rtrim
(
$class
.
' '
.
$c
);});
Download in other formats:
Original Format