File: wp-admin/includes/upgrade.php
-
Filters the contents of the email sent to the site administrator when WordPress is installed.
-
Determine if global tables should be upgraded.
-
Filters if upgrade routines should be run on global tables.
-
functionmaybe_convert_table_to_utf8mb4()
If a table only contains utf8 or utf8mb4 columns, convert it to utf8mb4.
-
Maybe enable pretty permalinks on installation.
-
functionmake_site_theme()
Creates a site theme.
-
functiontranslate_level_to_role()
Translate user level to user role name.
-
functionwp_check_mysql_version()
Checks the version of the installed MySQL binary.
-
Disables the Automattic widgets plugin, which was merged into core.
-
functionmaybe_disable_link_manager()
Disables the Link Manager on upgrade if, at the time of upgrade, no links exist in the DB.
-
Filters the dbDelta SQL queries for creating tables and/or databases.
-
functionpre_schema_upgrade()
Runs before the schema is upgraded.
-
Filters the dbDelta SQL queries for inserting or updating.
-
functionmake_db_current()
Updates the database tables to a new schema.
-
functionmake_db_current_silent()
Updates the database tables to a new schema, but without displaying results.
-
functionmake_site_theme_from_oldschool()
Creates a site theme from an existing theme.
-
functionmake_site_theme_from_default()
Creates a site theme from the default theme.
-
functionget_alloptions_110()
Retrieve all options as it was for 1.2.
-
functiondeslash()
Filters for content to remove unnecessary slashes.
-
functiondbDelta()
Modifies the database based on specified SQL statements.
-
hookdbdelta_queries
Filters the dbDelta SQL queries.
-
functionupgrade_network()
Executes network-level upgrade routines.
-
functionmaybe_create_table()
Creates a table in the database, if it doesn’t already exist.
-
functiondrop_index()
Drops a specified index from a table.
-
functionadd_clean_index()
Adds an index to a specified table.
-
functionmaybe_add_column()
Adds column to a database table, if it doesn’t already exist.
-
functionwp_upgrade()
Runs WordPress Upgrade functions.
-
hookwp_upgrade
Fires after a site is fully upgraded.
-
functionwp_install()
Installs the site.
-
hookwp_install
Fires after a site is fully installed.