Title: wp-includes/post.php | Page 9 of 9 | Developer.WordPress.org

---

# File: wp-includes/post.php

 * function[get_page_statuses()](https://developer.wordpress.org/reference/functions/get_page_statuses/)
 * Retrieves all of the WordPress support page statuses.
 * Used by [1 function](https://developer.wordpress.org/reference/functions/get_page_statuses/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/get_page_statuses/#uses)
   | Source: [wp-includes/post.php:1343](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/post.php#L1343-L1351)
 * function[_wp_relative_upload_path()](https://developer.wordpress.org/reference/functions/_wp_relative_upload_path/)
 * Returns relative path to an uploaded file.
 * Used by [6 functions](https://developer.wordpress.org/reference/functions/_wp_relative_upload_path/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/_wp_relative_upload_path/#uses)
   | Source: [wp-includes/post.php:919](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/post.php#L919-L937)
 * function[create_initial_post_types()](https://developer.wordpress.org/reference/functions/create_initial_post_types/)
 * Creates the initial post types when ‘init’ action is fired.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/create_initial_post_types/#used-by)
   | Uses [10 functions](https://developer.wordpress.org/reference/functions/create_initial_post_types/#uses)
   | Source: [wp-includes/post.php:20](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/post.php#L20-L826)
 * function[get_attached_file()](https://developer.wordpress.org/reference/functions/get_attached_file/)
 * Retrieves attached file path based on attachment ID.
 * Used by [27 functions](https://developer.wordpress.org/reference/functions/get_attached_file/#used-by)
   | Uses [3 functions](https://developer.wordpress.org/reference/functions/get_attached_file/#uses)
   | Source: [wp-includes/post.php:845](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/post.php#L845-L869)
 * hook[get_attached_file](https://developer.wordpress.org/reference/hooks/get_attached_file/)
 * Filters the attached file based on the given ID.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/get_attached_file/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/get_attached_file/#uses)
   | Source: [wp-includes/post.php:868](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/post.php#L868-L868)
 * function[update_attached_file()](https://developer.wordpress.org/reference/functions/update_attached_file/)
 * Updates attachment file path based on attachment ID.
 * Used by [4 functions](https://developer.wordpress.org/reference/functions/update_attached_file/#used-by)
   | Uses [5 functions](https://developer.wordpress.org/reference/functions/update_attached_file/#uses)
   | Source: [wp-includes/post.php:885](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/post.php#L885-L906)
 * hook[update_attached_file](https://developer.wordpress.org/reference/hooks/update_attached_file/)
 * Filters the path to the attached file to update.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/update_attached_file/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/update_attached_file/#uses)
   | Source: [wp-includes/post.php:898](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/post.php#L898-L898)

 [Previous Page](https://developer.wordpress.org/reference/files/wp-includes/post.php/page/8/?output_format=md)

[1](https://developer.wordpress.org/reference/files/wp-includes/post.php/?output_format=md)…
[7](https://developer.wordpress.org/reference/files/wp-includes/post.php/page/7/?output_format=md)
[8](https://developer.wordpress.org/reference/files/wp-includes/post.php/page/8/?output_format=md)
9