WPDev.one
Core Function
View Source on Trac ↗

_fix_attachment_links()

_fix_attachment_links( mixed $post )

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

Parameters 1 required

Name / Type Description
(int

| WP_Post) $post Post ID or post object.

Required

Return Value

((void)
| int | WP_Error) Void if nothing fixed. 0 or WP_Error on update failure. The post ID on update success.

Function Information

Since Version
2.3.0
Source File
wp-admin/includes/post.php
Advertisement