get_updates( 'plugin' ); if ( empty( $plugins ) ) { return; } ob_start(); foreach ( $plugins as $plugin_data ) { $plugin_name = $plugin_data['Name']; $author_name = $plugin_data['Author']; // Link the plugin name to the plugin URL if available. if ( ! empty( $plugin_data['PluginURI'] ) ) { $plugin_name = sprintf( '%s (%s)', esc_url( $plugin_data['PluginURI'] ), esc_attr__( 'Visit plugin homepage', 'give' ), $plugin_name, esc_html( $plugin_data['Version'] ) ); } // Link the author name to the author URL if available. if ( ! empty( $plugin_data['AuthorURI'] ) ) { $author_name = sprintf( '%s', esc_url( $plugin_data['AuthorURI'] ), esc_attr__( 'Visit author homepage', 'give' ), $author_name ); } ?>