Suggestion: Remove Attachment Page URL
-
Although this plugin redirects the attachment page to its parent post or file URL, WordPress still provides the attachment page pretty URLs on the media library and media insertion dialog. Can you implement a function that removes this URL as well?
function remove_attachment_page_link( $link ) { return; } add_filter( 'attachment_link', 'remove_attachment_page_link' )
In this way, if a user selects “Link to attachment page” when inserting an attachment file, the attachment file will be inserted without the link.
- The topic ‘Suggestion: Remove Attachment Page URL’ is closed to new replies.