inc/images.php¶
-
largo_attachment_image_link_remove_filter
()¶ Remove links to attachments
Parameters: - $he (object) – post content
Returns: object $ost content with image links stripped out
Since: 0.1
-
largo_home_icon
()¶ Get the home icon for the sticky nav
Parameters: - $class ((string)) – any additional classes you would like to add to icon when returned
- $size ((string)) – the size of the logo to return
Returns: (string) $result markup for the sticky nav home icon (logo if available, otherwise just an icon)
Since: 0.4
-
largo_clear_home_icon_cache
()¶ Clear the home icon cache when options are updated
-
largo_media_sideload_image
()¶ Similar to media_sideload_image except that it simply returns the attachment’s ID on success
Parameters: - $file ((string)) – the url of the image to download and attach to the post
- $post_id ((integer)) – the post ID to attach the image to
- $desc ((string)) – an optional description for the image
Since: 0.5.2