_fix_attachment_links


_fix_attachment_links ( $post )

Access:
  • private
Parameters:
  • (int|WP_Post) 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, get_attachment_link, the_attachment_link, wp_get_attachment_link, get_the_attachment_link

Top Google Results

User discussions

wpseek mobile