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

Extendify, version 2.2.0. 22 lines.

- Page: https://pluginprobe.com/plugins/extendify/2.2.0/code/src/Agent/workflows/theme/change-theme-fonts-variation.js
- Raw: https://pluginprobe.com/plugins/extendify/2.2.0/raw/src/Agent/workflows/theme/change-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/change-theme-fonts-variation.js#L10-L20`.

```javascript
import { __ } from '@wordpress/i18n';
import { RedirectFontsVariations } from '@agent/workflows/theme/components/RedirectFontsVariations';
import { SelectThemeFontsVariation } from '@agent/workflows/theme/components/SelectThemeFontsVariation';

const { context, abilities } = window.extAgentData;

export default {
	available: () => abilities?.canEditThemes && context?.hasThemeVariations,
	needsRedirect: () => !Number(context?.postId || 0),
	redirectComponent: () =>
		RedirectFontsVariations(
			__(
				'Hey there! It looks like you are trying to change your theme fonts, but you are not on a page where we can do that.',
				'extendify-local',
			),
		),
	id: 'change-theme-fonts-variation',
	whenFinished: {
		component: SelectThemeFontsVariation,
	},
};

```
