On this page
apply_filters( 'icon_dir', string $path )
Filters the icon directory path.
Parameters
$pathstring-
Icon directory absolute path.
Source
File: wp-includes/post.php. View all references
$icon_dir = apply_filters( 'icon_dir', ABSPATH . WPINC . '/images/media' );
Related
Used By
| Used By | Description |
|---|---|
| get_attachment_icon_src() wp-includes/deprecated.php | Retrieve icon URL and Path. |
| wp_get_attachment_image_src() wp-includes/media.php | Retrieves an image to represent an attachment. |
| wp_mime_type_icon() wp-includes/post.php | Retrieves the icon for a MIME type or attachment. |
Changelog
| Version | Description |
|---|---|
| 2.0.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/icon_dir