Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



wp-includes/ms-blogs.php ›

Funkcje54
Site/blog functions that work with the blogs table and related data.


Function Short description
add_blog_optionAdd a new option for a given blog id.
add_site_metaAdds metadata to a site.
clean_blog_cacheClean the blog cache
clean_network_cacheRemoves a network from the object cache.
clean_site_details_cacheCleans the site details cache for a site.
delete_blog_optionRemoves option by name for a given blog id. Prevents removal of protected WordPress options.
delete_site_metaRemoves metadata matching criteria from a site.
delete_site_meta_by_keyDeletes everything from site meta matching meta key.
get_blogaddress_by_idGet a full blog URL, given a blog id.
get_blogaddress_by_nameGet a full blog URL, given a blog name.
get_blog_detailsRetrieve the details for a blog from the blogs table and blog options.
get_blog_optionRetrieve option value for a given blog id based on name of option.
get_blog_statusGet a blog details field.
get_id_from_blognameRetrieves a sites ID given its (subdomain or directory) slug.
get_last_updatedGet a list of most recently updated blogs.
get_networkRetrieves network data given a network ID or network object.
get_networksRetrieves a list of networks.
get_siteRetrieves site data given a site ID or site object.
get_sitesRetrieves a list of sites matching requested arguments.
get_site_metaRetrieves metadata for a site.
is_archivedCheck if a particular blog is archived.
ms_is_switchedDetermines if switch_to_blog() is in effect
refresh_blog_detailsClear the blog details cache.
restore_current_blogRestore the current blog, after calling switch_to_blog()
switch_to_blogSwitch the current blog.
update_archivedUpdate the 'archived' status of a particular blog.
update_blog_detailsUpdate the details for a blog. Updates the blogs table for a given blog id.
update_blog_optionUpdate an option for a particular blog.
update_blog_statusUpdate a blog details field.
update_network_cacheUpdates the network cache of given networks.
update_sitemeta_cacheUpdates metadata cache for list of site IDs.
update_site_cacheUpdates sites in cache.
update_site_metaUpdates metadata for a site.
wpmu_update_blogs_dateUpdate the last_updated field for the current site.
wp_delete_siteDeletes a site from the database.
wp_initialize_siteRuns the initialization routine for a given site.
wp_insert_siteInserts a new site into the database.
wp_is_site_initializedChecks whether a site is initialized.
wp_maybe_clean_new_site_cache_on_updateCleans the necessary caches after specific site data has been updated.
wp_maybe_transition_site_statuses_on_updateTriggers actions on site status updates.
wp_maybe_update_network_site_counts_on_updateUpdates the count of sites for a network based on a changed site.
wp_normalize_site_dataNormalizes data for a site prior to inserting or updating in the database.
wp_prepare_site_dataPrepares site data for insertion or update in the database.
wp_switch_roles_and_userSwitches the initialized roles and current user capabilities to another site.
wp_uninitialize_siteRuns the uninitialization routine for a given site.
wp_update_blog_public_option_on_site_updateUpdates the `blog_public` option for a given site ID.
wp_update_siteUpdates a site in the database.
wp_validate_site_dataValidates data for a site prior to inserting or updating in the database.
_prime_network_cachesAdds any networks from the given IDs to the cache that do not already exist in cache.
_prime_site_cachesAdds any sites from the given ids to the cache that do not already exist in cache.
_update_blog_date_on_post_deleteHandler for updating the current site's last updated date when a published post is deleted.
_update_blog_date_on_post_publishHandler for updating the site's last updated date when a post is published or an already published post is changed.
_update_posts_count_on_deleteHandler for updating the current site's posts count when a post is deleted.
_update_posts_count_on_transition_post_statusHandler for updating the current site's posts count when a post status changes.