# extendify/3.1.3/src/Agent/workflows/theme/tools/change-hero-section.js

Extendify, version 3.1.3. 12 lines.

- Page: https://pluginprobe.com/plugins/extendify/3.1.3/code/src/Agent/workflows/theme/tools/change-hero-section.js
- Raw: https://pluginprobe.com/plugins/extendify/3.1.3/raw/src/Agent/workflows/theme/tools/change-hero-section.js
- Modified: 2026-03-19T19:35:18+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/extendify/3.1.3/code/src/Agent/workflows/theme/tools/change-hero-section.js#L10-L20`.

```javascript
import apiFetch from '@wordpress/api-fetch';

export default async ({ updatedPageBlocks, postId }) => {
	if (!updatedPageBlocks) return;

	await apiFetch({
		path: `/wp/v2/pages/${postId}`,
		method: 'POST',
		data: { content: updatedPageBlocks },
	});
};

```
