---
title: For Developers
description: "### Actions ``` /** * Example: Add content after wishlist page. */ add_action( 'cix_woocommerce_wishlist_after_wishlist', 'prefix__after_wishlist',10 ); function prefix__after_wishlist() { echo \"This is the content that goes after the wishlist page.\"; } ``` - 'cix_woocommerce_wishlist_after_merge_wishlists' - 'cix_woocommerce_wishlist_before_wishlist' - 'cix_woocommerce_wishlist_after_wishlist' - 'cix_woocommerce_wishlist_before_add_to_wishlist'…"
url: "https://www.codeixer.com/docs/for-developers/"
updated: "2024-05-06"
category: Wishlist for WooCommerce
---

# For Developers

### Actions

```
/**
 * Example: Add content after wishlist page.
 */
add_action( 'cix_woocommerce_wishlist_after_wishlist', 'prefix__after_wishlist',10 );
function prefix__after_wishlist() {
	echo "This is the content that goes after the wishlist page.";
}
```

- 'cix_woocommerce_wishlist_after_merge_wishlists'
- 'cix_woocommerce_wishlist_before_wishlist'
- 'cix_woocommerce_wishlist_after_wishlist'
- 'cix_woocommerce_wishlist_before_add_to_wishlist'
- 'cix_woocommerce_wishlist_after_add_to_wishlist'
- 'cix_woocommerce_wishlist_after_wishlist_contents'
- 'cix_woocommerce_wishlist_before_wishlist_contents'

### Filters

```
/**
 * Example: Add prefix to the wishlist class.
 *
 * @param string $class The wishlist class.
 * @return string The modified wishlist class.
 */
add_filter( 'cix_add_to_wishlist_class', 'prefix_add_to_wishlist_class' );
function prefix_add_to_wishlist_class( $class ) {
	return 'my-custom-class';
}
```

- cix_add_to_wishlist_icon_html
- cix_add_to_wishlist_class

### Javascript Events

For further theme integration, the javascript file in the plugin has a few custom events that are fired for wishlist user activity.

```
 // Example: Add log
$(document).on('add_to_wishlist.cix_wishlist', function () {
  console.log('Wishlist item added');
});
```

- undo_wishlist.cix_wishlist
- add_to_wishlist.cix_wishlist
- add_to_cart.cix_wishlist
- remove_product.cix_wishlist
