Automattic\WooCommerce\Abilities

ActionableAbility::save_failed │ private static │ WC 1.0

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() 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 )
	);
}