Jump to content

Availability of object hooks


muser-onclick

Recommended Posts

Can I use actionObjectAddAfter, actionObjectUpdateBefore, actionObjectUpdateAfter and actionObjectDeleteAfter safely?

 

These hooks are not documented in Prestashop 1.5 documentation, but are executed when object is modified.

 

For example:

 

ObjectModel.php, line 582:

 

  // @hook actionObject*UpdateBefore
 Hook::exec('actionObjectUpdateBefore', array('object' => $this));
 Hook::exec('actionObject'.get_class($this).'UpdateBefore', array('object' => $this));

 

Thank you

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...