Woocommerce Collections Developer Docs

“Woocommerce Collections” Documentation by “WPWeb”

Action Reference

woo_cl_add_to_collection_button

This action runs when displaying the add to collection button. you can use this action to display content just before or after the collection button.


Filter Reference

woo_cl_messages

This filter allows you to change all the messages in the plugin. The filter includes one parameter, $messages, which is an array containing all the messages. each message has a unique key.

woo_cl_default_labels

This filter allows you to change terminology from "collection" to other terminology like Light Box, Watch List, Wish List, Want List. The filter includes one parameter, $defaults, which is an array containing singular and plural text of terminology.

woo_cl_add_to_collection_defaults

This filter allows you to change "add to collection" button features like product, button text, icon type and icon position. The filter includes one parameter, $args, which is an array containing all the button featured arguments.

woo_cl_collection_share_url

This filter allows you to change collection URL when sharing a collection to social sites or email. The filter includes two parameters, $share_url and $collecion_id, you can change share_url based on it.

woo_cl_add_to_collection_button_check

This filter Force allow to display add to collection button even product in out of stock or with 0 price. The filter includes two parameter, $value, which is an Boolean value and $product, which is an object contain product data.

woo_cl_redirect_link_for_non_login_user

This filter allows you to change login redirect URL when click on add to collection button without login. The filter includes one parameter, $redirect_url, which is an string containing the redirect URL.