# extendify/2.2.0/src/Agent/workflows/theme/tools/update-theme-fonts-variation.js

Extendify, version 2.2.0. 15 lines.

- Page: https://pluginprobe.com/plugins/extendify/2.2.0/code/src/Agent/workflows/theme/tools/update-theme-fonts-variation.js
- Raw: https://pluginprobe.com/plugins/extendify/2.2.0/raw/src/Agent/workflows/theme/tools/update-theme-fonts-variation.js
- Modified: 2025-09-30T17:20:28+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/2.2.0/code/src/Agent/workflows/theme/tools/update-theme-fonts-variation.js#L10-L20`.

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

// variation here should be added to the payload by the custom component
const id = window.extSharedData.globalStylesPostID;
export default ({ variation }) =>
	apiFetch({
		method: 'POST',
		path: `/wp/v2/global-styles/${id}`,
		data: {
			id,
			settings: variation.settings,
			styles: variation.styles,
		},
	});

```
