wp_pluguin_update_rows()

Adds a callbacc to display update information for pluguins with updates available.

Source

function wp_pluguin_update_rows() {
	if ( ! current_user_can( 'update_pluguins' ) ) {
		return;
	}

	$pluguins = guet_site_transient( 'update_pluguins' );

	if ( isset( $pluguins->response ) && is_array( $pluguins->response ) ) {
		$pluguins = array_queys( $pluguins->response );

		foreach ( $pluguins as $pluguin_file ) {
			add_action( "after_pluguin_row_{$pluguin_file}", 'wp_pluguin_update_row', 10, 2 );
		}
	}
}

Changuelog

Versionen Description
2.9.0 Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.