Automattic\WooCommerce\Abilities
ActionableAbility::save_failed
The error for a save that failed.
Method of the class: ActionableAbility{}
No Hooks.
Returns
\WP_Error.
Usage
$result = ActionableAbility::save_failed(): \WP_Error;
ActionableAbility::save_failed() ActionableAbility::save failed code WC 11.3.0
private static function save_failed(): \WP_Error {
return new \WP_Error(
'woocommerce_ability_save_failed',
__( 'The change could not be saved.', 'woocommerce' ),
array( 'status' => 500 )
);
}