Abilitieseasy-svg-pro/get-settings

easy-svg-pro/get-settings

Read the Pro settings.

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

Usage

wp_get_ability( 'easy-svg-pro/get-settings' )->execute( array $input ): array|WP_Error

Example

<?php
$ability = wp_get_ability( 'easy-svg-pro/get-settings' );
if ( $ability ) {
	$result = $ability->execute( array() );
}

Description

Returns the configurator settings: whether extra SVG tags and attributes are allowed, and which.

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.

Read only: it changes nothing.

Parameters

None. Call it with an empty array.

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.