wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.
get_theme_updates › WordPress Function
Od2.9.0
Przestarzałyn/a
› get_theme_updates ( Brak parametrów )
Powrót: |
|
Zdefiniowane na: |
|
Codex: |
Retrieves themes with updates available.
Powiązane Funkcje: list_theme_updates, get_theme_data, get_the_date, get_core_updates, get_theme_mods
Źródło
function get_theme_updates() { $current = get_site_transient( 'update_themes' ); if ( ! isset( $current->response ) ) { return array(); } $update_themes = array(); foreach ( $current->response as $stylesheet => $data ) { $update_themes[ $stylesheet ] = wp_get_theme( $stylesheet ); $update_themes[ $stylesheet ]->update = $data; } return $update_themes; }