1. Home
  2. Call for Price for WooCommerce
  3. Hooks: Action and Filter Reference

Hooks: Action and Filter Reference

This document provides a comprehensive list of all hooks available within the plugin. It serves as a resource for developers aiming to enhance the plugin’s functionality.

How to display the ‘Call for Price’ text for products that have back-order status and are labeled as ‘Out of Stock?

Hook
alg_call_for_price_text_for_backorders

Usage

add_filter( 'alg_call_for_price_text_for_backorders', 'cfp_text_for_backorders' );

Example:

/**
* Add this code snippet in functions.php file of your currently active theme.
*/
function cfp_text_for_backorders() {
return false;
}
add_filter( 'alg_call_for_price_text_for_backorders', 'cfp_text_for_backorders' );
Was this article helpful to you? Yes No

How can we help?