# post-carousel/4.0.4/src/admin/hooks/getChangeLogData.js

Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog &amp; News, version 4.0.4. 21 lines.

- Page: https://pluginprobe.com/plugins/post-carousel/4.0.4/code/src/admin/hooks/getChangeLogData.js
- Raw: https://pluginprobe.com/plugins/post-carousel/4.0.4/raw/src/admin/hooks/getChangeLogData.js
- Modified: 2026-04-24T11:48:54+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/post-carousel/4.0.4/code/src/admin/hooks/getChangeLogData.js#L10-L20`.

```javascript
import axios from "axios";

const useGetChangeLogData = () => {
	const getChangeLog = async () => {
		const data = new FormData();
		data.append("nonce", sp_pcp_block_settings.nonce);
		data.append("action", "sp_smart_post_block_changelog");
		try {
			const response = await axios.post(ajaxurl, data);
			return response.data;
		} catch (error) {
			// console.error("Error fetching posts:", error.message);
			throw error;
		}
	};

	return { getChangeLog: getChangeLog };
};

export default useGetChangeLogData;

```
