wpbo_quantity_message

The WooCommerce Advanced Product Quantities wpbo quantity message shortcode.


Usage

  1. // basic usage 
  2. echo do_shortcode('[wpbo_quantity_message]'); 
  1. // variable usage 
  2. $result = do_shortcode('[wpbo_quantity_message]'); 
  3. echo $result;  

Defined (1)

The shortcode is defined in the following location(s).

/includes/class-ipq-actions.php  
  1. if ( isset( $settings['ipq_show_qty_note'] ) and $settings['ipq_show_qty_note'] == 'on' ) { 
  2. add_action( 'init', array( $this, 'apply_product_notification' ) ); 
  3.  
  4. // Add quantity message shortcode 
  5. add_shortcode('wpbo_quantity_message', array( $this, 'display_minimum_quantity_note' )); 
  6.  
  7.  
  8. /** 
  9. * Adds minimum product notification at correct action level