wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi
wp_theme_update_rows › WordPress Function
Da3.1.0
Deprecaton/a
› wp_theme_update_rows ( Nessun parametro )
Definito a: |
|
Codex: |
Adds a callback to display update information for themes with updates available.
Funzioni correlate: wp_theme_update_row, get_theme_updates, list_theme_updates, wp_plugin_update_rows, wp_update_post
Sorgenti
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 ); } } }