# extendify/3.0.6/src/Agent/workflows/theme/tools/update-menu-items.js

Extendify, version 3.0.6. 11 lines.

- Page: https://pluginprobe.com/plugins/extendify/3.0.6/code/src/Agent/workflows/theme/tools/update-menu-items.js
- Raw: https://pluginprobe.com/plugins/extendify/3.0.6/raw/src/Agent/workflows/theme/tools/update-menu-items.js
- Modified: 2025-10-23T16:20:58+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.0.6/code/src/Agent/workflows/theme/tools/update-menu-items.js#L10-L20`.

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

export default async ({ id, replacements }) =>
	await apiFetch({
		path: `/wp/v2/navigation/${id}`,
		method: 'POST',
		data: {
			content: replacements?.[0]?.updated,
		},
	});

```
