# jetpack/15.5.1/modules/likes/post-count-jetpack.js

Jetpack – WP Security, Backup, Speed, &amp; Growth, version 15.5.1. 21 lines.

- Page: https://pluginprobe.com/plugins/jetpack/15.5.1/code/modules/likes/post-count-jetpack.js
- Raw: https://pluginprobe.com/plugins/jetpack/15.5.1/raw/modules/likes/post-count-jetpack.js
- Modified: 2021-12-07T16:56:48+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/jetpack/15.5.1/code/modules/likes/post-count-jetpack.js#L10-L20`.

```javascript
window.wpPostLikeCount = window.wpPostLikeCount || {};

( function ( $ ) {
	window.wpPostLikeCount = jQuery.extend( window.wpPostLikeCount, {
		request: function ( options ) {
			return $.ajax( {
				type: 'GET',
				url: window.wpPostLikeCount.jsonAPIbase + options.path,
				dataType: 'jsonp',
				data: options.data,
				success: function ( response ) {
					options.success( response );
				},
				error: function ( response ) {
					options.error( response );
				},
			} );
		},
	} );
} )( jQuery );

```
