Title: Functions | Page 8 of 49 | Developer.WordPress.org

---

# Functions

 * function[count_users()](https://developer.wordpress.org/reference/functions/count_users/)
 * Counts number of users who have each of the user roles.
 * Used by [1 function](https://developer.wordpress.org/reference/functions/count_users/#used-by)
   | Uses [13 functions](https://developer.wordpress.org/reference/functions/count_users/#uses)
   | Source: [wp-includes/user.php:1337](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/user.php#L1337-L1447)
 * function[count_user_posts()](https://developer.wordpress.org/reference/functions/count_user_posts/)
 * Gets the number of posts a user has written.
 * Used by [3 functions](https://developer.wordpress.org/reference/functions/count_user_posts/#used-by)
   | Uses [6 functions](https://developer.wordpress.org/reference/functions/count_user_posts/#uses)
   | Source: [wp-includes/user.php:616](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/user.php#L616-L646)
 * function[create_empty_blog()](https://developer.wordpress.org/reference/functions/create_empty_blog/)
 * Create an empty blog.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/create_empty_blog/#used-by)
   | Uses [7 functions](https://developer.wordpress.org/reference/functions/create_empty_blog/#uses)
   | Source: [wp-includes/ms-deprecated.php:398](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/ms-deprecated.php#L398-L422)
 * 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[create_initial_rest_routes()](https://developer.wordpress.org/reference/functions/create_initial_rest_routes/)
 * Registers default REST API routes.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/create_initial_rest_routes/#used-by)
   | Uses [33 functions](https://developer.wordpress.org/reference/functions/create_initial_rest_routes/#uses)
   | Source: [wp-includes/rest-api.php:265](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/rest-api.php#L265-L431)
 * function[create_initial_taxonomies()](https://developer.wordpress.org/reference/functions/create_initial_taxonomies/)
 * Creates the initial taxonomies.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/create_initial_taxonomies/#used-by)
   | Uses [9 functions](https://developer.wordpress.org/reference/functions/create_initial_taxonomies/#uses)
   | Source: [wp-includes/taxonomy.php:25](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/taxonomy.php#L25-L264)
 * function[create_initial_theme_features()](https://developer.wordpress.org/reference/functions/create_initial_theme_features/)
 * Creates the initial theme features when the ‘setup_theme’ action is fired.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/create_initial_theme_features/#used-by)
   | Uses [3 functions](https://developer.wordpress.org/reference/functions/create_initial_theme_features/#uses)
   | Source: [wp-includes/theme.php:3935](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/theme.php#L3935-L4343)
 * function[create_user()](https://developer.wordpress.org/reference/functions/create_user/)
 * An alias of wp_create_user().
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/create_user/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/create_user/#uses)
   | Source: [wp-includes/deprecated.php:1217](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/deprecated.php#L1217-L1220)
 * function[current_action()](https://developer.wordpress.org/reference/functions/current_action/)
 * Retrieves the name of the current action hook.
 * Used by [4 functions](https://developer.wordpress.org/reference/functions/current_action/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/current_action/#uses)
   | Source: [wp-includes/plugin.php:647](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/plugin.php#L647-L649)
 * function[current_datetime()](https://developer.wordpress.org/reference/functions/current_datetime/)
 * Retrieves the current time as an object using the site’s timezone.
 * Used by [1 function](https://developer.wordpress.org/reference/functions/current_datetime/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/current_datetime/#uses)
   | Source: [wp-includes/functions.php:101](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/functions.php#L101-L103)
 * function[current_filter()](https://developer.wordpress.org/reference/functions/current_filter/)
 * Retrieves the name of the current filter hook.
 * Used by [15 functions](https://developer.wordpress.org/reference/functions/current_filter/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/functions/current_filter/#uses)
   | Source: [wp-includes/plugin.php:369](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/plugin.php#L369-L373)
 * function[current_theme_info()](https://developer.wordpress.org/reference/functions/current_theme_info/)
 * Retrieves information on the current active theme.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/current_theme_info/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/current_theme_info/#uses)
   | Source: [wp-admin/includes/deprecated.php:1062](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/deprecated.php#L1062-L1066)
 * function[current_theme_supports()](https://developer.wordpress.org/reference/functions/current_theme_supports/)
 * Checks a theme’s support for a given feature.
 * Used by [83 functions](https://developer.wordpress.org/reference/functions/current_theme_supports/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/current_theme_supports/#uses)
   | Source: [wp-includes/theme.php:3158](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/theme.php#L3158-L3219)
 * function[current_time()](https://developer.wordpress.org/reference/functions/current_time/)
 * Retrieves the current time based on specified type.
 * Used by [36 functions](https://developer.wordpress.org/reference/functions/current_time/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/current_time/#uses)
   | Source: [wp-includes/functions.php:78](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/functions.php#L78-L92)
 * function[current_user_can()](https://developer.wordpress.org/reference/functions/current_user_can/)
 * Returns whether the current user has the specified capability.
 * Used by [505 functions](https://developer.wordpress.org/reference/functions/current_user_can/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/current_user_can/#uses)
   | Source: [wp-includes/capabilities.php:913](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/capabilities.php#L913-L915)
 * function[current_user_can_for_blog()](https://developer.wordpress.org/reference/functions/current_user_can_for_blog/)
 * Returns whether the current user has the specified capability for a given site.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/current_user_can_for_blog/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/current_user_can_for_blog/#uses)
   | Source: [wp-includes/deprecated.php:6419](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/deprecated.php#L6419-L6421)
 * function[current_user_can_for_site()](https://developer.wordpress.org/reference/functions/current_user_can_for_site/)
 * Returns whether the current user has the specified capability for a given site.
 * Used by [1 function](https://developer.wordpress.org/reference/functions/current_user_can_for_site/#used-by)
   | Uses [4 functions](https://developer.wordpress.org/reference/functions/current_user_can_for_site/#uses)
   | Source: [wp-includes/capabilities.php:939](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/capabilities.php#L939-L949)
 * function[customize_themes_print_templates()](https://developer.wordpress.org/reference/functions/customize_themes_print_templates/)
 * Prints JS templates for the theme-browsing UI in the Customizer.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/customize_themes_print_templates/#used-by)
   | Uses [10 functions](https://developer.wordpress.org/reference/functions/customize_themes_print_templates/#uses)
   | Source: [wp-admin/includes/theme.php:822](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/theme.php#L822-L1096)
 * function[dashboard_browser_nag_class()](https://developer.wordpress.org/reference/functions/dashboard_browser_nag_class/)
 * Adds an additional class to the browser nag if the current version is insecure.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/dashboard_browser_nag_class/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/dashboard_browser_nag_class/#uses)
   | Source: [wp-admin/includes/dashboard.php:1802](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/dashboard.php#L1802-L1810)
 * function[dashboard_php_nag_class()](https://developer.wordpress.org/reference/functions/dashboard_php_nag_class/)
 * Adds an additional class to the PHP nag if the current version is insecure.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/dashboard_php_nag_class/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/dashboard_php_nag_class/#uses)
   | Source: [wp-admin/includes/dashboard.php:1952](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/dashboard.php#L1952-L1966)
 * function[date_i18n()](https://developer.wordpress.org/reference/functions/date_i18n/)
 * Retrieves the date in localized format, based on a sum of Unix timestamp and 
   timezone offset in seconds.
 * Used by [19 functions](https://developer.wordpress.org/reference/functions/date_i18n/#used-by)
   | Uses [4 functions](https://developer.wordpress.org/reference/functions/date_i18n/#uses)
   | Source: [wp-includes/functions.php:179](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/functions.php#L179-L223)
 * function[dbDelta()](https://developer.wordpress.org/reference/functions/dbdelta/)
 * Modifies the database based on specified SQL statements.
 * Used by [3 functions](https://developer.wordpress.org/reference/functions/dbdelta/#used-by)
   | Uses [9 functions](https://developer.wordpress.org/reference/functions/dbdelta/#uses)
   | Source: [wp-admin/includes/upgrade.php:2936](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/upgrade.php#L2936-L3358)
 * function[deactivated_plugins_notice()](https://developer.wordpress.org/reference/functions/deactivated_plugins_notice/)
 * Renders an admin notice when a plugin was deactivated during an update.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/deactivated_plugins_notice/#used-by)
   | Uses [10 functions](https://developer.wordpress.org/reference/functions/deactivated_plugins_notice/#uses)
   | Source: [wp-admin/includes/plugin.php:2593](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/plugin.php#L2593-L2665)
 * function[deactivate_plugins()](https://developer.wordpress.org/reference/functions/deactivate_plugins/)
 * Deactivates a single plugin or multiple plugins.
 * Used by [3 functions](https://developer.wordpress.org/reference/functions/deactivate_plugins/#used-by)
   | Uses [11 functions](https://developer.wordpress.org/reference/functions/deactivate_plugins/#uses)
   | Source: [wp-admin/includes/plugin.php:758](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/plugin.php#L758-L850)
 * function[deactivate_sitewide_plugin()](https://developer.wordpress.org/reference/functions/deactivate_sitewide_plugin/)
 * Deprecated functionality for deactivating a network-only plugin.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/deactivate_sitewide_plugin/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/deactivate_sitewide_plugin/#uses)
   | Source: [wp-admin/includes/ms-deprecated.php:68](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/ms-deprecated.php#L68-L70)
 * function[dead_db()](https://developer.wordpress.org/reference/functions/dead_db/)
 * Loads custom DB error or display WordPress DB error.
 * Used by [4 functions](https://developer.wordpress.org/reference/functions/dead_db/#used-by)
   | Uses [4 functions](https://developer.wordpress.org/reference/functions/dead_db/#uses)
   | Source: [wp-includes/functions.php:5515](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/functions.php#L5515-L5533)
 * function[debug_fclose()](https://developer.wordpress.org/reference/functions/debug_fclose/)
 * Close the debugging file handle.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/debug_fclose/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/debug_fclose/#uses)
   | Source: [wp-includes/deprecated.php:2896](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/deprecated.php#L2896-L2898)
 * function[debug_fopen()](https://developer.wordpress.org/reference/functions/debug_fopen/)
 * Open the file handle for debugging.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/debug_fopen/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/debug_fopen/#uses)
   | Source: [wp-includes/deprecated.php:2862](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/deprecated.php#L2862-L2865)
 * function[debug_fwrite()](https://developer.wordpress.org/reference/functions/debug_fwrite/)
 * Write contents to the file used for debugging.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/debug_fwrite/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/debug_fwrite/#uses)
   | Source: [wp-includes/deprecated.php:2879](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/deprecated.php#L2879-L2883)
 * function[default_password_nag()](https://developer.wordpress.org/reference/functions/default_password_nag/)
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/default_password_nag/#used-by)
   | Uses [5 functions](https://developer.wordpress.org/reference/functions/default_password_nag/#uses)
   | Source: [wp-admin/includes/user.php:531](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/user.php#L531-L562)

 [Previous Page](https://developer.wordpress.org/reference/functions/page/7/?output_format=md)

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

 [Next Page](https://developer.wordpress.org/reference/functions/page/9/?output_format=md)