Actions

includes/class-yith-wcwl-admin.php

Copied!
Copy

Allows to fire some action when the plugin database is updated


Copied!
Copy

Allows to fire some action when the plugin database is installed


includes/class-yith-wcwl-ajax-handler.php

Copied!
Copy

Allows to fire some action when the wishlist has been renamed

Params
 YITH_WCWL_Wishlist $wishlist Wishlist object

includes/class-yith-wcwl-cron-extended.php

Copied!
Copy

Allows to fire some action when the 'Back in stock' email is sent

Params
 WP_User $user  User object
 array   $items Wishlist items

includes/class-yith-wcwl-cron-premium.php

Copied!
Copy

Allows to fire some action when the 'On sale item' email is sent

Params
 WP_User $user  User object
 array   $items Wishlist items

Copied!
Copy

Allows to fire some action when the 'Promotional' email is sent

Params
 array $receivers Array of user IDs
 array $item      Email content

includes/class-yith-wcwl-frontend.php

Copied!
Copy

Allows to fire some action when the frontend class has loaded all the requirements


includes/class-yith-wcwl-privacy.php

Copied!
Copy

Allows to fire some action before deleting the personal data from the wishlist

Params
 YITH_WCWL_Wishlist $wishlist Wishlist object

Copied!
Copy

Allows to fire some action when deleting the personal data from the wishlist

Params
 YITH_WCWL_Wishlist $wishlist Wishlist object

includes/class-yith-wcwl-wishlist-item.php

Copied!
Copy

Allows to fire some action when a wishlist item is set on sale

Params
 YITH_WCWL_Wishlist_Item $wishlist_item Wishlist item object

includes/class-yith-wcwl.php

Copied!
Copy

Allows to fire some action when a product is added to a wishlist

Params
 int $prod_id     Product ID
 int $wishlist_id Wishlist ID
 int $user_id     User ID

Copied!
Copy

Allows to fire some action when a product has been added to a wishlist

Params
 int $prod_id     Product ID
 int $wishlist_id Wishlist ID
 int $user_id     User ID

Copied!
Copy

Allows to fire some action when removing a product from a wishlist

Params
 int $prod_id     Product ID
 int $wishlist_id Wishlist ID
 int $user_id     User ID

Copied!
Copy

Allows to fire some action when a product has been removed from a wishlist

Params
 int $prod_id     Product ID
 int $wishlist_id Wishlist ID
 int $user_id     User ID

includes/data-stores/class-yith-wcwl-wishlist-data-store.php

Copied!
Copy

Allows to fire some action when a new wishlist is created

Params
 int                $wishlist_id   Wishlist ID
 YITH_WCWL_Wishlist $wishlist_data Wishlist object

Copied!
Copy

Allows to fire some action when a wishlist is updated

Params
 int                $wishlist_id   Wishlist ID
 YITH_WCWL_Wishlist $wishlist_data Wishlist object

Copied!
Copy

Allows to fire some action before a wishlist is deleted

Params
 int $wishlist_id Wishlist ID

Copied!
Copy

Allows to fire some action when a wishlist is deleted

Params
 int $wishlist_id Wishlist ID

Copied!
Copy

Allows to fire some action after a wishlist is deleted

Params
 int $id Wishlist ID

Copied!
Copy

Allows to fire some action when default wishlist is created

Params
 YITH_WCWL_Wishlist $default_wishlist Default wishlist object
 int                $id               Wishlist ID

includes/data-stores/class-yith-wcwl-wishlist-item-data-store.php

Copied!
Copy

Allows to fire some action when a new item is added to the wishlist

Params
 int                     $item_id     Wishlist item ID
 YITH_WCWL_Wishlist_Item $item        Wishlist item object
 int                     $wishlist_id Wishlist ID

Copied!
Copy

Allows to fire some action when an item is updated in the wishlist

Params
 int                     $item_id     Wishlist item ID
 YITH_WCWL_Wishlist_Item $item        Wishlist item object
 int                     $wishlist_id Wishlist ID

Copied!
Copy

Allows to fire some action before an item is deleted from the wishlist

Params
 int $item_id Wishlist item ID

Copied!
Copy

Allows to fire some action when an item is deleted from the wishlist

Params
 int $item_id Wishlist item ID

includes/tables/class-yith-wcwl-popular-table.php

Copied!
Copy

Allows to render some content or fire some action after the Popular items table


includes/tables/class-yith-wcwl-users-popular-table.php

Copied!
Copy

Allows to render some content or fire some action after the Popular items table


init.php

Copied!
Copy

Allows the plugin initialization


templates/share.php

Copied!
Copy

Allows to render some content or fire some action before the share wishlist section


Copied!
Copy

Allows to render some content or fire some action after the share buttons in the Wishlist page

Params
 string $share_link_url   Share link URL
 string $share_title      Share title
 string $share_link_title Share link title

Copied!
Copy

Allows to render some content or fire some action after the share wishlist section


templates/wishlist-view-footer-mobile.php

Copied!
Copy

Allows to render some content or fire some action after the wishlist

Params
 YITH_WCWL_Wishlist $wishlist Wishlist object

Copied!
Copy

Allows to render some content or fire some action after the wishlist form

Params
 YITH_WCWL_Wishlist $wishlist Wishlist object

templates/wishlist-view-footer.php

Copied!
Copy

Allows to render some content or fire some action after the wishlist

Params
 YITH_WCWL_Wishlist $wishlist Wishlist object

Copied!
Copy

Allows to render some content or fire some action after the wishlist form

Params
 YITH_WCWL_Wishlist $wishlist Wishlist object

templates/wishlist-view-header.php

Copied!
Copy

Allows to render some content or fire some action before the wishlist form

Params
 YITH_WCWL_Wishlist $wishlist Wishlist object

Copied!
Copy

Allows to render some content or fire some action before the wishlist title

Params
 YITH_WCWL_Wishlist $wishlist Wishlist object

Copied!
Copy

Allows to render some content or fire some action before the wishlist

Params
 YITH_WCWL_Wishlist $wishlist Wishlist object

templates/wishlist-view-mobile.php

Copied!
Copy

Allows to render some content or fire some action after the product name in the wishlist table

Params
 YITH_WCWL_Wishlist_Item $item Wishlist item object

templates/wishlist-view.php

Copied!
Copy

Allows to render some content or fire some action before the product thumbnail in the wishlist table

Params
 YITH_WCWL_Wishlist_Item $item     Wishlist item object
 YITH_WCWL_Wishlist      $wishlist Wishlist object

Copied!
Copy

Allows to render some content or fire some action after the product thumbnail in the wishlist table

Params
 YITH_WCWL_Wishlist_Item $item     Wishlist item object
 YITH_WCWL_Wishlist      $wishlist Wishlist object

Copied!
Copy

Allows to render some content or fire some action before the product name in the wishlist table

Params
 YITH_WCWL_Wishlist_Item $item     Wishlist item object
 YITH_WCWL_Wishlist      $wishlist Wishlist object

Copied!
Copy

Allows to render some content or fire some action after the product name in the wishlist table

Params
 YITH_WCWL_Wishlist_Item $item     Wishlist item object
 YITH_WCWL_Wishlist      $wishlist Wishlist object

Copied!
Copy

Allows to render some content or fire some action before the product price in the wishlist table

Params
 YITH_WCWL_Wishlist_Item $item     Wishlist item object
 YITH_WCWL_Wishlist      $wishlist Wishlist object

Copied!
Copy

Allows to render some content or fire some action after the product price in the wishlist table

Params
 YITH_WCWL_Wishlist_Item $item     Wishlist item object
 YITH_WCWL_Wishlist      $wishlist Wishlist object

Copied!
Copy

Allows to render some content or fire some action before the product quantity in the wishlist table

Params
 YITH_WCWL_Wishlist_Item $item     Wishlist item object
 YITH_WCWL_Wishlist      $wishlist Wishlist object

Copied!
Copy

Allows to render some content or fire some action after the product quantity in the wishlist table

Params
 YITH_WCWL_Wishlist_Item $item     Wishlist item object
 YITH_WCWL_Wishlist      $wishlist Wishlist object

Copied!
Copy

Allows to render some content or fire some action before the product stock in the wishlist table

Params
 YITH_WCWL_Wishlist_Item $item     Wishlist item object
 YITH_WCWL_Wishlist      $wishlist Wishlist object

Copied!
Copy

Allows to render some content or fire some action after the product stock in the wishlist table

Params
 YITH_WCWL_Wishlist_Item $item     Wishlist item object
 YITH_WCWL_Wishlist      $wishlist Wishlist object

Copied!
Copy

Allows to render some content or fire some action before the product cart in the wishlist table

Params
 YITH_WCWL_Wishlist_Item $item     Wishlist item object
 YITH_WCWL_Wishlist      $wishlist Wishlist object

Copied!
Copy

Allows to render some content or fire some action before the 'Add to cart' in the wishlist table

Params
 YITH_WCWL_Wishlist_Item $item     Wishlist item object
 YITH_WCWL_Wishlist      $wishlist Wishlist object

Copied!
Copy

Allows to render some content or fire some action after the 'Add to cart' in the wishlist table

Params
 YITH_WCWL_Wishlist_Item $item     Wishlist item object
 YITH_WCWL_Wishlist      $wishlist Wishlist object

Copied!
Copy

Allows to render some content or fire some action after the 'Move to another wishlist' in the wishlist table

Params
 YITH_WCWL_Wishlist_Item $item     Wishlist item object
 YITH_WCWL_Wishlist      $wishlist Wishlist object

Copied!
Copy

Allows to render some content or fire some action after the product cart in the wishlist table

Params
 YITH_WCWL_Wishlist_Item $item     Wishlist item object
 YITH_WCWL_Wishlist      $wishlist Wishlist object

templates/wishlist.php

Copied!
Copy

Allows to render some content or fire some action before the wishlist content

Params
 array $var Array of attributes that needs to be sent to sub-template

Copied!
Copy

Allows to render some content or fire some action in the wishlist content

Params
 array $var Array of attributes that needs to be sent to sub-template

Copied!
Copy

Allows to render some content or fire some action after the wishlist content

Params
 array $var Array of attributes that needs to be sent to sub-template