Abilitieseasy-svg-pro/apply-quick-setup

easy-svg-pro/apply-quick-setup

Apply a quick setup profile.

Ability · Easy SVG Pro · Defined in includes/abilities/manage.php

Usage

wp_get_ability( 'easy-svg-pro/apply-quick-setup' )->execute( array $input ): array|WP_Error

Example

<?php
$ability = wp_get_ability( 'easy-svg-pro/apply-quick-setup' );
if ( $ability ) {
	$result = $ability->execute( array(
		'profile' => 'agency',
	) );
}

Description

Switches on the features of one quick setup profile in one write. Nothing is switched off. get-features lists the profiles.

Runs through the plugin's own REST handler, so its permission check, argument schema and handler do the work. The ability adds no write path of its own.

Registered while the AI agents (MCP) switch is on, which it is out of the box. Permission: the user needs manage_options, and every call asks the route's own check again.

Writes to the site. Calling it twice with the same input has the same effect as once.

Parameters

body
profilestring

Required. The quick setup profile whose features to switch on. Nothing is switched off. One of: agency, developer.

Return value

returnarray|WP_Error

What the matching Icons panel screen receives for the same action. An array on success, a WP_Error with the route's code and status on failure.