wp_theme_update_rows() WordPress Function
The wp_theme_update_rows() function is used to update the rows in the themes table. It accepts two parameters: the theme ID and an array of data. The ID is used to identify the theme, and the array contains the data that will be updated in the database.
wp_theme_update_rows() #
Source
File: wp-admin/includes/update.php
function wp_theme_update_rows() { if ( ! current_user_can( 'update_themes' ) ) { return; } $themes = get_site_transient( 'update_themes' ); if ( isset( $themes->response ) && is_array( $themes->response ) ) { $themes = array_keys( $themes->response ); foreach ( $themes as $theme ) { add_action( "after_theme_row_{$theme}", 'wp_theme_update_row', 10, 2 ); } } }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
3.1.0 | Introduced. |