Warning: You are browsing the documentation for PrestaShop 8, which is outdated.

You might want to read an updated version of this page for the current version, PrestaShop 9. Read the updated version of this page

Learn how to update to the latest version.

Hook actionProductAttributeDelete

Informations

Product attribute deletion This hook is displayed when a product's attribute is deleted
Hook actionProductAttributeDelete
Locations
FO
Type action
Origin core
Aliases [deleteProductAttribute]
Description This hook is displayed when a product's attribute is deleted

Located in

Origin File
core classes/Product.php

Call of the Hook in the origin file

Hook::exec('actionProductAttributeDelete', ['id_product_attribute' => 0, 'id_product' => (int) $this->id, 'deleteAllAttributes' => true])