It’s a icon with which to display the attachment. If it isn’t set, it uses the default icon. The exception here is for images: the returned values always refer to the thumbnail (of size set in the arguments of wp_get_attachment_image_src
). Icons are always shown at their original size.
If the attachment was an audio file, it would use the audio icon, unless otherwise specified using the icon
argument. See the ‘Change Icon Directory’ section of the link you gave in the question.
Related Posts:
- remove links from images using functions.php
- How to add classes to images based on their categories?
- Auto delete WordPress images/thumbnails (all sizes) and featured after X days/hours, or similar?
- How to add a rel attribute to images that contains their categories?
- Best way to programatically add “rel” attributes to page and post images
- Find first image on paginated post for Pinterest
- How do I permanently Disable Attachment Post URL
- Can’t check if a post has thumbnail adding filter to get_post_metadata()
- Image rotation fails to regenerate custom sized thumbnail
- Display images that are not in the content
- Can’t filter wp_get_attachment_link
- Get ID of first image attached to a post
- How to stop wordpress from injecting hard-coded style into image attachments with captions
- How to hide image-url if no attachment?
- attachment page template? only show attachments for current post?
- How to get an attachment id from a filename
- What are the meta fields for an attachment?
- Remove attachment page for audio media type only
- Get Attachment Category Name
- How d0 i get the number of attachments in the post
- Different image using srcset function
- Auto delete content in specific folder inside media library
- WP_Query for Attachments not working as expected
- How to update an image attachment’s alt text from a custom field when saving a post?
- Remove all video attachment, both files and post/postmeta from database?
- Open image size links in a page instead of direct image link
- Set thumbnail from URL, by grabbing image in functions.php
- Disable Attachment Page Except for Category
- Is it possible to rename a post format?
- How to paginate the get_users function?
- opening links in new tab using – add_filter( ‘the_content’, ‘make_clickable’);
- Child theme – overriding add_image_size by a child theme [duplicate]
- Check if has any sidebar active on current page
- Compare post levels and user levels wishlist member
- Change ul class=”children” for wp_list_pages?
- Target a certain page within wordpress backend (admin) i.e. Pages > About
- Set default options for inserting media
- Session is not starting
- Hide WYSIWYG editor on certain templates
- Trouble using antispambot()
- Polylang: pll_e() & pll__() on functions.php, doesn’t work
- How to include all files within a folder to functions.php?
- Why is my Gutenberg block returning an error after initial save?
- Display trackbacks separately from comments in twentyeleven
- Pass parameters to function through an action
- Load .txt file for login_message in wp-login.php
- How to automatically remove links from WordPress Biographical Info?
- Php function 301 redirect
- Selective Product Category for Carousel
- How to change login labels
- Function only on a specific page
- Add Custom Background Properties to Customizer
- What is the correct way of updating wordpress options
- WordPress functions.php – Execute plugin specific user online
- Skeleton Child Theme Add Icon Bar to Header Flex Grid
- Function that outputs second theme url
- error in getting post id
- Trying to register script in footer
- register_sidebar_widget is deprecated since version 2.8! Use wp_register_sidebar_widget() instead
- Require file in functions from theme directory using PHP
- Remove Custuomize Sections
- (Woocommerce) Order by price when entering specific category
- Adding an option to a shortcode
- Get urls of images in a gallery?
- Undefined variable error in new function
- How can I show immediate and/or parents in a title?
- Add Login/Logout Menu Item to Primary Nav “My Account” Submenu [Woocommerce] [closed]
- Best way to disable sidebars on posts (only)?
- Passing Jquery value to WordPress function
- How to override this theme function in child theme
- Unable to add extra elements to the main navi (wp_nav_menu_items)
- Internet Explorer opens links to .msi files as text in a new tab
- Overwriting TwentyTwelve template file with child theme template, but lower in the hierarchy
- A better way to get stats
- Get URLs for AJAX Filter Checkboxes WordPress
- How to Not Show posts on Category page?
- Is it possible to load recaptcha script only in url with fragment identifier (#)?
- page shows short code not output
- Scheduled post delete – can’t pass the cron arguments
- Prevent function from triggering on current page
- Assign IDs to headings in ACF using functions.php
- Multiple Notifications SetInterval
- Child Theme not loading multiple stylesheets
- Show number of sold products but be first for less than 2
- How To Show Shortcodes In WordPress Custom Fields?
- Class::$template_dir_path=get_template_directory();
- Post date on Custom field
- Fatal error: Call to undefined function add_action() – an untouched problem
- Author info does not show up when author has no posts
- How to wp_enqueue_script with html?
- Is it possible to change parameters of Parent theme function in the Child theme?
- Error function main() is a non-object to construct my Ajax.php
- Unregistering custom tinymce plugin?
- Combining wp_current_user() and a variable
- Init hook for header send
- java script error Uncaught SyntaxError: Unexpected token ILLEGAL
- site_url is not honoring scheme
- new to javascript – using in instead of functions.php, not loading correctly
- Remove Disqus JavaScript from homepage
- How do i set global variable in a function in wordpress functions.php