You can change or add Javascript to specific actions. All these functions can be added by users in plugin settings.
Parameters
- user_func – array with users JavaScript functions, that can be set in plugin settings
- before_wish – execute before clicking on Add to wishlist button
- after_wish – execute after added to wishlist
- before_wait – execute before clicking on Add to waitlist button
- after_wait – execute after added to waitlist
Usage
<?php
function change_berocket_wish_wait_user_func ( $user_func ) {
//your code here
return $user_func;
}
add_filter( 'berocket_wish_wait_user_func', 'change_berocket_wish_wait_user_func' );
?>