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

---

# File: wp-includes/functions.php

 * function[path_join()](https://developer.wordpress.org/reference/functions/path_join/)
 * Joins two filesystem paths together.
 * Used by [9 functions](https://developer.wordpress.org/reference/functions/path_join/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/path_join/#uses)
   | Source: [wp-includes/functions.php:2169](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/functions.php#L2169-L2175)
 * function[wp_normalize_path()](https://developer.wordpress.org/reference/functions/wp_normalize_path/)
 * Normalizes a filesystem path.
 * Used by [25 functions](https://developer.wordpress.org/reference/functions/wp_normalize_path/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/wp_normalize_path/#uses)
   | Source: [wp-includes/functions.php:2194](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/functions.php#L2194-L2224)
 * function[get_temp_dir()](https://developer.wordpress.org/reference/functions/get_temp_dir/)
 * Determines a writable directory for temporary files.
 * Used by [5 functions](https://developer.wordpress.org/reference/functions/get_temp_dir/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/get_temp_dir/#uses)
   | Source: [wp-includes/functions.php:2242](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/functions.php#L2242-L2270)
 * function[wp_is_writable()](https://developer.wordpress.org/reference/functions/wp_is_writable/)
 * Determines if a directory is writable.
 * Used by [3 functions](https://developer.wordpress.org/reference/functions/wp_is_writable/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/wp_is_writable/#uses)
   | Source: [wp-includes/functions.php:2285](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/functions.php#L2285-L2291)
 * function[do_robots()](https://developer.wordpress.org/reference/functions/do_robots/)
 * Displays the default robots.txt file content.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/do_robots/#used-by)
   | Uses [5 functions](https://developer.wordpress.org/reference/functions/do_robots/#uses)
   | Source: [wp-includes/functions.php:1713](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/functions.php#L1713-L1740)
 * function[win_is_writable()](https://developer.wordpress.org/reference/functions/win_is_writable/)
 * Workaround for Windows bug in is_writable() function
 * Used by [3 functions](https://developer.wordpress.org/reference/functions/win_is_writable/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/win_is_writable/#uses)
   | Source: [wp-includes/functions.php:2309](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/functions.php#L2309-L2332)
 * function[wp()](https://developer.wordpress.org/reference/functions/wp/)
 * Sets up the WordPress query.
 * Used by [2 functions](https://developer.wordpress.org/reference/functions/wp/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/wp/#uses)
   | Source: [wp-includes/functions.php:1349](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/functions.php#L1349-L1357)
 * function[get_status_header_desc()](https://developer.wordpress.org/reference/functions/get_status_header_desc/)
 * Retrieves the description for the HTTP status.
 * Used by [5 functions](https://developer.wordpress.org/reference/functions/get_status_header_desc/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/get_status_header_desc/#uses)
   | Source: [wp-includes/functions.php:1373](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/functions.php#L1373-L1449)
 * function[status_header()](https://developer.wordpress.org/reference/functions/status_header/)
 * Sets HTTP status header.
 * Used by [17 functions](https://developer.wordpress.org/reference/functions/status_header/#used-by)
   | Uses [3 functions](https://developer.wordpress.org/reference/functions/status_header/#uses)
   | Source: [wp-includes/functions.php:1463](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/functions.php#L1463-L1492)
 * hook[status_header](https://developer.wordpress.org/reference/hooks/status_header/)
 * Filters an HTTP status header.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/status_header/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/status_header/#uses)
   | Source: [wp-includes/functions.php:1486](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/functions.php#L1486-L1486)
 * function[wp_get_nocache_headers()](https://developer.wordpress.org/reference/functions/wp_get_nocache_headers/)
 * Gets the HTTP header information to prevent caching.
 * Used by [3 functions](https://developer.wordpress.org/reference/functions/wp_get_nocache_headers/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/wp_get_nocache_headers/#uses)
   | Source: [wp-includes/functions.php:1508](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/functions.php#L1508-L1530)
 * hook[nocache_headers](https://developer.wordpress.org/reference/hooks/nocache_headers/)
 * Filters the cache-controlling HTTP headers that are used to prevent caching.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/nocache_headers/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/nocache_headers/#uses)
   | Source: [wp-includes/functions.php:1526](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/functions.php#L1526-L1526)
 * function[nocache_headers()](https://developer.wordpress.org/reference/functions/nocache_headers/)
 * Sets the HTTP headers to prevent caching for the different browsers.
 * Used by [11 functions](https://developer.wordpress.org/reference/functions/nocache_headers/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/nocache_headers/#uses)
   | Source: [wp-includes/functions.php:1543](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/functions.php#L1543-L1557)
 * function[cache_javascript_headers()](https://developer.wordpress.org/reference/functions/cache_javascript_headers/)
 * Sets the HTTP headers for caching for 10 days with JavaScript content type.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/cache_javascript_headers/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/cache_javascript_headers/#uses)
   | Source: [wp-includes/functions.php:1564](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/functions.php#L1564-L1570)
 * function[get_num_queries()](https://developer.wordpress.org/reference/functions/get_num_queries/)
 * Retrieves the number of database queries during the WordPress execution.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/get_num_queries/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/functions/get_num_queries/#uses)
   | Source: [wp-includes/functions.php:1581](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/functions.php#L1581-L1584)
 * function[bool_from_yn()](https://developer.wordpress.org/reference/functions/bool_from_yn/)
 * Determines whether input is yes or no.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/bool_from_yn/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/functions/bool_from_yn/#uses)
   | Source: [wp-includes/functions.php:1596](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/functions.php#L1596-L1598)
 * function[do_feed()](https://developer.wordpress.org/reference/functions/do_feed/)
 * Loads the feed template from the use of an action hook.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/do_feed/#used-by)
   | Uses [6 functions](https://developer.wordpress.org/reference/functions/do_feed/#uses)
   | Source: [wp-includes/functions.php:1612](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/functions.php#L1612-L1647)
 * function[do_feed_rdf()](https://developer.wordpress.org/reference/functions/do_feed_rdf/)
 * Loads the RDF RSS 0.91 Feed template.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/do_feed_rdf/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/do_feed_rdf/#uses)
   | Source: [wp-includes/functions.php:1656](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/functions.php#L1656-L1658)
 * function[add_query_arg()](https://developer.wordpress.org/reference/functions/add_query_arg/)
 * Retrieves a modified URL query string.
 * Used by [164 functions](https://developer.wordpress.org/reference/functions/add_query_arg/#used-by)
   | Uses [4 functions](https://developer.wordpress.org/reference/functions/add_query_arg/#uses)
   | Source: [wp-includes/functions.php:1144](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/functions.php#L1144-L1210)
 * function[do_feed_rss()](https://developer.wordpress.org/reference/functions/do_feed_rss/)
 * Loads the RSS 1.0 Feed Template.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/do_feed_rss/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/do_feed_rss/#uses)
   | Source: [wp-includes/functions.php:1667](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/functions.php#L1667-L1669)
 * function[remove_query_arg()](https://developer.wordpress.org/reference/functions/remove_query_arg/)
 * Removes an item or items from a query string.
 * Used by [24 functions](https://developer.wordpress.org/reference/functions/remove_query_arg/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/remove_query_arg/#uses)
   | Source: [wp-includes/functions.php:1225](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/functions.php#L1225-L1233)
 * function[do_feed_rss2()](https://developer.wordpress.org/reference/functions/do_feed_rss2/)
 * Loads either the RSS2 comment feed or the RSS2 posts feed.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/do_feed_rss2/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/do_feed_rss2/#uses)
   | Source: [wp-includes/functions.php:1680](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/functions.php#L1680-L1686)
 * function[add_magic_quotes()](https://developer.wordpress.org/reference/functions/add_magic_quotes/)
 * Walks the array while sanitizing the contents.
 * Used by [4 functions](https://developer.wordpress.org/reference/functions/add_magic_quotes/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/add_magic_quotes/#uses)
   | Source: [wp-includes/functions.php:1297](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/functions.php#L1297-L1307)
 * function[do_feed_atom()](https://developer.wordpress.org/reference/functions/do_feed_atom/)
 * Loads either Atom comment feed or Atom posts feed.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/do_feed_atom/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/do_feed_atom/#uses)
   | Source: [wp-includes/functions.php:1697](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/functions.php#L1697-L1703)
 * function[wp_remote_fopen()](https://developer.wordpress.org/reference/functions/wp_remote_fopen/)
 * HTTP request for URI to retrieve content.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/wp_remote_fopen/#used-by)
   | Uses [3 functions](https://developer.wordpress.org/reference/functions/wp_remote_fopen/#uses)
   | Source: [wp-includes/functions.php:1319](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/functions.php#L1319-L1336)
 * function[is_serialized()](https://developer.wordpress.org/reference/functions/is_serialized/)
 * Checks value to find if it was serialized.
 * Used by [5 functions](https://developer.wordpress.org/reference/functions/is_serialized/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/functions/is_serialized/#uses)
   | Source: [wp-includes/functions.php:674](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/functions.php#L674-L731)
 * function[is_serialized_string()](https://developer.wordpress.org/reference/functions/is_serialized_string/)
 * Checks whether serialized data is of string type.
 * Used by [1 function](https://developer.wordpress.org/reference/functions/is_serialized_string/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/functions/is_serialized_string/#uses)
   | Source: [wp-includes/functions.php:741](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/functions.php#L741-L760)
 * function[maybe_serialize()](https://developer.wordpress.org/reference/functions/maybe_serialize/)
 * Serializes data, if needed.
 * Used by [13 functions](https://developer.wordpress.org/reference/functions/maybe_serialize/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/maybe_serialize/#uses)
   | Source: [wp-includes/functions.php:628](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/functions.php#L628-L643)
 * function[xmlrpc_getposttitle()](https://developer.wordpress.org/reference/functions/xmlrpc_getposttitle/)
 * Retrieves post title from XML-RPC XML.
 * Used by [2 functions](https://developer.wordpress.org/reference/functions/xmlrpc_getposttitle/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/functions/xmlrpc_getposttitle/#uses)
   | Source: [wp-includes/functions.php:775](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/functions.php#L775-L783)
 * function[xmlrpc_getpostcategory()](https://developer.wordpress.org/reference/functions/xmlrpc_getpostcategory/)
 * Retrieves the post category or categories from XML-RPC XML.
 * Used by [2 functions](https://developer.wordpress.org/reference/functions/xmlrpc_getpostcategory/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/functions/xmlrpc_getpostcategory/#uses)
   | Source: [wp-includes/functions.php:801](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/functions.php#L801-L810)

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

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

 [Next Page](https://developer.wordpress.org/reference/files/wp-includes/functions.php/page/10/?output_format=md)