wp-includes/meta.php:
get_metadata_raw()
|
Retrieves raw metadata value for the specified object.
|
wp-admin/includes/class-wp-privacy-requests-table.php:
WP_Privacy_Requests_Table::get_request_counts()
|
Count number of requests for each status.
|
wp-includes/class-wp-network.php:
WP_Network::get_main_site_id()
|
Returns the main site ID for the network.
|
wp-includes/class-wp-embed.php:
WP_Embed::find_oembed_post_id()
|
Find the oEmbed cache post ID for a given cache key.
|
wp-includes/class-wp-customize-manager.php:
WP_Customize_Manager::find_changeset_post_id()
|
Find the changeset post ID for a given changeset UUID.
|
wp-includes/functions.php:
wp_cache_get_last_changed()
|
Gets last changed date for the specified cache group.
|
wp-includes/class-wp-term-query.php:
WP_Term_Query::get_terms()
|
Retrieves the query results.
|
wp-includes/class-wp-network-query.php:
WP_Network_Query::get_networks()
|
Gets a list of networks matching the query vars.
|
wp-includes/class-wp-site.php:
WP_Site::get_details()
|
Retrieves the details for this site.
|
wp-includes/ms-load.php:
ms_load_current_site_and_network()
|
Identifies the network and site of a requested domain and path and populates the corresponding network and site global objects as part of the multisite bootstrap process.
|
wp-includes/class-wp-site-query.php:
WP_Site_Query::get_sites()
|
Retrieves a list of sites matching the query vars.
|
wp-includes/class-wp-site.php:
WP_Site::get_instance()
|
Retrieves a site from the database by its ID.
|
wp-includes/class-wp-network.php:
WP_Network::get_instance()
|
Retrieve a network from the database by its ID.
|
wp-includes/class-wp-network.php:
WP_Network::get_by_path()
|
Retrieve the closest matching network for a domain and path.
|
wp-includes/class-wp-comment.php:
WP_Comment::get_instance()
|
Retrieves a WP_Comment instance.
|
wp-includes/class-wp-comment-query.php:
WP_Comment_Query::fill_descendants()
|
Fetch descendants for located comments.
|
wp-includes/class-wp-term.php:
WP_Term::get_instance()
|
Retrieve WP_Term instance.
|
wp-includes/option.php:
update_network_option()
|
Updates the value of a network option that was already added.
|
wp-includes/option.php:
add_network_option()
|
Adds a new network option.
|
wp-includes/option.php:
get_network_option()
|
Retrieves a network’s option value based on the option name.
|
wp-admin/includes/class-wp-ms-sites-list-table.php:
WP_MS_Sites_List_Table::column_users()
|
Handles the users column output.
|
wp-includes/class-wp-comment-query.php:
WP_Comment_Query::get_comments()
|
Get a list of comments matching the query vars.
|
wp-admin/includes/plugin.php:
get_plugins()
|
Check the plugins directory and retrieve all plugin files with plugin data.
|
wp-includes/class-wp-user.php:
WP_User::get_data_by()
|
Return only the main user fields
|
wp-includes/general-template.php:
wp_get_archives()
|
Display archive links based on type and format.
|
wp-includes/general-template.php:
get_calendar()
|
Display calendar with days that have posts as links.
|
wp-includes/deprecated.php:
get_usermeta()
|
Retrieve user metadata.
|
wp-includes/class-wp-theme.php:
WP_Theme::cache_get()
|
Gets theme data from cache.
|
wp-includes/functions.php:
is_blog_installed()
|
Determines whether WordPress is already installed.
|
wp-includes/taxonomy.php:
get_object_term_cache()
|
Retrieves the cached term objects for the given object ID.
|
wp-includes/taxonomy.php:
get_objects_in_term()
|
Retrieve object_ids of valid taxonomy and term.
|
wp-includes/link-template.php:
get_adjacent_post()
|
Retrieves the adjacent post.
|
wp-includes/option.php:
get_site_transient()
|
Retrieves the value of a site transient.
|
wp-includes/option.php:
get_transient()
|
Retrieves the value of a transient.
|
wp-includes/option.php:
wp_load_alloptions()
|
Loads and caches all autoloaded options, if available or all options.
|
wp-includes/option.php:
update_option()
|
Updates the value of an option that was already added.
|
wp-includes/option.php:
add_option()
|
Adds a new option.
|
wp-includes/option.php:
get_option()
|
Retrieves an option value based on an option name.
|
wp-includes/class-wp-post.php:
WP_Post::get_instance()
|
Retrieve WP_Post instance.
|
wp-includes/post.php:
wp_mime_type_icon()
|
Retrieve the icon for a MIME type or attachment.
|
wp-includes/post.php:
_get_last_post_time()
|
Gets the timestamp of the last time any post was modified or published.
|
wp-includes/post.php:
get_all_page_ids()
|
Get a list of page IDs.
|
wp-includes/post.php:
get_page_by_path()
|
Retrieves a page given its path.
|
wp-includes/post.php:
get_pages()
|
Retrieve an array of pages (or hierarchical post type items).
|
wp-includes/post.php:
wp_count_posts()
|
Count number of posts of a post type and if user has permissions to view.
|
wp-includes/ms-functions.php:
get_blog_id_from_url()
|
Get a blog’s numeric ID from its URL.
|
wp-includes/bookmark.php:
get_bookmark()
|
Retrieve Bookmark data
|
wp-includes/bookmark.php:
get_bookmarks()
|
Retrieves the list of bookmarks
|
wp-includes/ms-blogs.php:
get_blog_details()
|
Retrieve the details for a blog from the blogs table and blog options.
|
wp-includes/comment.php:
wp_count_comments()
|
Retrieves the total comment counts for the whole site or a single post.
|
wp-includes/comment.php:
get_lastcommentmodified()
|
The date the last comment was modified.
|
wp-includes/meta.php:
metadata_exists()
|
Determines if a meta field with the given key exists for the given object ID.
|
Expand full source codeCollapse full source code
Expand full source codeCollapse full source code
Feedback
Unless I misunderstand, I believe the result of
get_total()
will always be zero or one, because the query is limited to one user per page of results with thenumber
parameter. — By crstauf —It seems some cache dropins (like those used on WPEngine) may define `wp_cache_get` WITHOUT the 4th parameter, `$found`. This means `$found` might not be populated by `wp_cache_get()` (it will always be `null`, regardless of whether the value was cached or not), and you can also get a ton of warnings as reported here and here.
The workaround? Pretend `$found` isn’t an argument, and never use `wp_cache_set()` to cache a value of `false` (because you won’t be able to differentiate a cached value of `false` from the lack of a cached value, where `wp_cache_get()` also returns `false`.)
Eg
[PHP]
$result = wp_get_cache(‘my_key’);
if( $result === false){
// calculate the result, and use `0` or `null` instead of `false`
if( $result === false){
$result = 0;
}
wp_cache_set(‘my_key’, $result);
}
[/php]