_fix_attachment_links


_fix_attachment_links ( $post )

Access:
  • private
Parameters:
  • (int|object) post Post ID or post object.
Returns:
  • (void|int|WP_Error) Void if nothing fixed. 0 or WP_Error on update failure. The post ID on update success.
Defined at:

Description

Replaces hrefs of attachment anchors with up-to-date permalinks.

Related Functions

the_attachment_links, the_attachment_link, get_attachment_link, wp_get_attachment_link, get_the_attachment_link

Top Google Results

User discussions

wpseek mobile