Title: 2.1.0 | Page 9 of 10 | Developer.WordPress.org

---

# New and updated in 2.1.0

Functions

Hooks

Classes

Methods

 * hook[wp_update_attachment_metadata](https://developer.wordpress.org/reference/hooks/wp_update_attachment_metadata/)
 * Filters the updated attachment meta data.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/wp_update_attachment_metadata/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/wp_update_attachment_metadata/#uses)
   | Source: [wp-includes/post.php:7173](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/post.php#L7173-L7173)
 * function[wp_get_attachment_url()](https://developer.wordpress.org/reference/functions/wp_get_attachment_url/)
 * Retrieves the URL for an attachment.
 * Used by [38 functions](https://developer.wordpress.org/reference/functions/wp_get_attachment_url/#used-by)
   | Uses [11 functions](https://developer.wordpress.org/reference/functions/wp_get_attachment_url/#uses)
   | Source: [wp-includes/post.php:7191](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/post.php#L7191-L7255)
 * hook[wp_get_attachment_url](https://developer.wordpress.org/reference/hooks/wp_get_attachment_url/)
 * Filters the attachment URL.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/wp_get_attachment_url/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/wp_get_attachment_url/#uses)
   | Source: [wp-includes/post.php:7248](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/post.php#L7248-L7248)
 * function[wp_get_attachment_thumb_file()](https://developer.wordpress.org/reference/functions/wp_get_attachment_thumb_file/)
 * Retrieves thumbnail for an attachment.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/wp_get_attachment_thumb_file/#used-by)
   | Uses [6 functions](https://developer.wordpress.org/reference/functions/wp_get_attachment_thumb_file/#uses)
   | Source: [wp-includes/deprecated.php:4345](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/deprecated.php#L4345-L4380)
 * hook[wp_get_attachment_thumb_file](https://developer.wordpress.org/reference/hooks/wp_get_attachment_thumb_file/)
 * Filters the attachment thumbnail file path.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/wp_get_attachment_thumb_file/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/wp_get_attachment_thumb_file/#uses)
   | Source: [wp-includes/deprecated.php:4375](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/deprecated.php#L4375-L4375)
 * function[wp_get_attachment_thumb_url()](https://developer.wordpress.org/reference/functions/wp_get_attachment_thumb_url/)
 * Retrieves URL for an attachment thumbnail.
 * Used by [1 function](https://developer.wordpress.org/reference/functions/wp_get_attachment_thumb_url/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/wp_get_attachment_thumb_url/#uses)
   | Source: [wp-includes/post.php:7299](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/post.php#L7299-L7321)
 * hook[wp_get_attachment_thumb_url](https://developer.wordpress.org/reference/hooks/wp_get_attachment_thumb_url/)
 * Filters the attachment thumbnail URL.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/wp_get_attachment_thumb_url/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/wp_get_attachment_thumb_url/#uses)
   | Source: [wp-includes/post.php:7320](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/post.php#L7320-L7320)
 * function[get_page_by_title()](https://developer.wordpress.org/reference/functions/get_page_by_title/)
 * Retrieves a page given its title.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/get_page_by_title/#used-by)
   | Uses [5 functions](https://developer.wordpress.org/reference/functions/get_page_by_title/#uses)
   | Source: [wp-includes/deprecated.php:4573](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/deprecated.php#L4573-L4605)
 * hook[get_pages](https://developer.wordpress.org/reference/hooks/get_pages/)
 * Filters the retrieved list of pages.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/get_pages/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/get_pages/#uses)
   | Source: [wp-includes/post.php:6710](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/post.php#L6710-L6710)
 * function[get_page_by_path()](https://developer.wordpress.org/reference/functions/get_page_by_path/)
 * Retrieves a page given its path.
 * Used by [9 functions](https://developer.wordpress.org/reference/functions/get_page_by_path/#used-by)
   | Uses [6 functions](https://developer.wordpress.org/reference/functions/get_page_by_path/#uses)
   | Source: [wp-includes/post.php:6273](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/post.php#L6273-L6358)
 * function[wp_publish_post()](https://developer.wordpress.org/reference/functions/wp_publish_post/)
 * Publishes a post by transitioning the post status.
 * Used by [1 function](https://developer.wordpress.org/reference/functions/wp_publish_post/#used-by)
   | Uses [10 functions](https://developer.wordpress.org/reference/functions/wp_publish_post/#uses)
   | Source: [wp-includes/post.php:5404](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/post.php#L5404-L5470)
 * function[wp_set_post_categories()](https://developer.wordpress.org/reference/functions/wp_set_post_categories/)
 * Sets categories for a post.
 * Used by [4 functions](https://developer.wordpress.org/reference/functions/wp_set_post_categories/#used-by)
   | Uses [6 functions](https://developer.wordpress.org/reference/functions/wp_set_post_categories/#uses)
   | Source: [wp-includes/post.php:5854](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/post.php#L5854-L5889)
 * function[wp_get_post_categories()](https://developer.wordpress.org/reference/functions/wp_get_post_categories/)
 * Retrieves the list of categories for a post.
 * Used by [9 functions](https://developer.wordpress.org/reference/functions/wp_get_post_categories/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/wp_get_post_categories/#uses)
   | Source: [wp-includes/post.php:4405](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/post.php#L4405-L4413)
 * function[get_post_type()](https://developer.wordpress.org/reference/functions/get_post_type/)
 * Retrieves the post type of the current post or of a given post.
 * Used by [36 functions](https://developer.wordpress.org/reference/functions/get_post_type/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/get_post_type/#uses)
   | Source: [wp-includes/post.php:1634](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/post.php#L1634-L1641)
 * hook[rss_update_period](https://developer.wordpress.org/reference/hooks/rss_update_period/)
 * Filters how often to update the RSS feed.
 * Used by [0 functions](https://developer.wordpress.org/reference/hooks/rss_update_period/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/rss_update_period/#uses)
   | Source: [wp-includes/feed-rss2.php:59](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/feed-rss2.php#L59-L59)
 * hook[commentrss2_item](https://developer.wordpress.org/reference/hooks/commentrss2_item/)
 * Fires at the end of each RSS2 comment feed item.
 * Used by [0 functions](https://developer.wordpress.org/reference/hooks/commentrss2_item/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/commentrss2_item/#uses)
   | Source: [wp-includes/feed-rss2-comments.php:119](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/feed-rss2-comments.php#L119-L119)
 * 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.1/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 [5 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.1/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.1/src/wp-includes/post.php#L898-L898)
 * method[WP_Rewrite::add_rule()](https://developer.wordpress.org/reference/classes/wp_rewrite/add_rule/)
 * Adds a rewrite rule that transforms a URL structure to a set of query vars.
 * Used by [1 function](https://developer.wordpress.org/reference/classes/wp_rewrite/add_rule/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/classes/wp_rewrite/add_rule/#uses)
   | Source: [wp-includes/class-wp-rewrite.php:1684](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/class-wp-rewrite.php#L1684-L1705)
 * method[WP_Rewrite::add_external_rule()](https://developer.wordpress.org/reference/classes/wp_rewrite/add_external_rule/)
 * Adds a rewrite rule that doesn’t correspond to index.php.
 * Used by [1 function](https://developer.wordpress.org/reference/classes/wp_rewrite/add_external_rule/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_rewrite/add_external_rule/#uses)
   | Source: [wp-includes/class-wp-rewrite.php:1715](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/class-wp-rewrite.php#L1715-L1717)
 * method[WP_Rewrite::add_endpoint()](https://developer.wordpress.org/reference/classes/wp_rewrite/add_endpoint/)
 * Adds an endpoint, like /trackback/.
 * Used by [1 function](https://developer.wordpress.org/reference/classes/wp_rewrite/add_endpoint/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/classes/wp_rewrite/add_endpoint/#uses)
   | Source: [wp-includes/class-wp-rewrite.php:1752](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/class-wp-rewrite.php#L1752-L1764)
 * function[add_rewrite_tag()](https://developer.wordpress.org/reference/functions/add_rewrite_tag/)
 * Adds a new rewrite tag (like %postname%).
 * Used by [3 functions](https://developer.wordpress.org/reference/functions/add_rewrite_tag/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/add_rewrite_tag/#uses)
   | Source: [wp-includes/rewrite.php:162](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/rewrite.php#L162-L177)
 * function[add_feed()](https://developer.wordpress.org/reference/functions/add_feed/)
 * Adds a new feed type like /atom1/.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/add_feed/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/add_feed/#uses)
   | Source: [wp-includes/rewrite.php:251](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/rewrite.php#L251-L266)
 * function[add_rewrite_endpoint()](https://developer.wordpress.org/reference/functions/add_rewrite_endpoint/)
 * Adds an endpoint, like /trackback/.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/add_rewrite_endpoint/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/add_rewrite_endpoint/#uses)
   | Source: [wp-includes/rewrite.php:335](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/rewrite.php#L335-L338)
 * function[add_rewrite_rule()](https://developer.wordpress.org/reference/functions/add_rewrite_rule/)
 * Adds a rewrite rule that transforms a URL structure to a set of query vars.
 * Used by [3 functions](https://developer.wordpress.org/reference/functions/add_rewrite_rule/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/add_rewrite_rule/#uses)
   | Source: [wp-includes/rewrite.php:140](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/rewrite.php#L140-L144)
 * function[get_bookmark()](https://developer.wordpress.org/reference/functions/get_bookmark/)
 * Retrieves bookmark data.
 * Used by [7 functions](https://developer.wordpress.org/reference/functions/get_bookmark/#used-by)
   | Uses [6 functions](https://developer.wordpress.org/reference/functions/get_bookmark/#uses)
   | Source: [wp-includes/bookmark.php:24](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/bookmark.php#L24-L66)
 * function[get_bookmarks()](https://developer.wordpress.org/reference/functions/get_bookmarks/)
 * Retrieves the list of bookmarks.
 * Used by [4 functions](https://developer.wordpress.org/reference/functions/get_bookmarks/#used-by)
   | Uses [10 functions](https://developer.wordpress.org/reference/functions/get_bookmarks/#uses)
   | Source: [wp-includes/bookmark.php:136](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/bookmark.php#L136-L323)
 * hook[get_bookmarks](https://developer.wordpress.org/reference/hooks/get_bookmarks/)
 * Filters the returned list of bookmarks.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/get_bookmarks/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/get_bookmarks/#uses)
   | Source: [wp-includes/bookmark.php:175](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/bookmark.php#L175-L175)
 * class[WP_Scripts](https://developer.wordpress.org/reference/classes/wp_scripts/)
 * Core class used to register scripts.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_scripts/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/classes/wp_scripts/#uses)
   | Source: [wp-includes/class-wp-scripts.php:18](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/class-wp-scripts.php#L18-L1250)

 [Previous Page](https://developer.wordpress.org/reference/since/2.1.0/page/8/?output_format=md)

[1](https://developer.wordpress.org/reference/since/2.1.0/?output_format=md) … [7](https://developer.wordpress.org/reference/since/2.1.0/page/7/?output_format=md)
[8](https://developer.wordpress.org/reference/since/2.1.0/page/8/?output_format=md)
9 [10](https://developer.wordpress.org/reference/since/2.1.0/page/10/?output_format=md)

 [Next Page](https://developer.wordpress.org/reference/since/2.1.0/page/10/?output_format=md)