wphooks.info - _wp_relative_upload_path

_wp_relative_upload_path

(trunk - 5.1-alpha-44286)

The hook occurs in the following file:

wp-includes/post.php:
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
	}

	/**
	 * Filters the relative path to an uploaded file.
	 *
	 * @since 2.9.0
	 *
	 * @param string $new_path Relative path to the file.
	 * @param string $path     Full path to the file.
	 */
	return apply_filters( '_wp_relative_upload_path', $new_path, $path );
}

/**
 * Retrieve all children of the post parent ID.
 *
 * Normally, without any enhancements, the children would apply to pages. In the
 * context of the inner workings of WordPress, pages, posts, and attachments
 * share the same table, so therefore the functionality could apply to any one
 * of them. It is then noted that while this function does not work on posts, it