woocommerce_should_send_no_stock_notification

woocommerce_should_send_no_stock_notification

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_should_send_no_stock_notification') is found 1 times:

  • /includes/class-wc-emails.php line 729
    		 * @param int $product_id - The out of stock product id
    		 *
    		 * @since 4.6.0
    		 */
    		if ( false === apply_filters( 'woocommerce_should_send_no_stock_notification', true, $product->get_id() ) ) {
    			return;
    		}
    
    		$subject = sprintf( '[%s] %s', $this->get_blogname(), __( 'Product out of stock', 'woocommerce' ) );
    		/* translators: %s: product name */
    		$message = sprintf( __( '%s is out of stock.', 'woocommerce' ), html_entity_decode( wp_strip_all_tags( $product->get_formatted_name() ), ENT_QUOTES, get_bloginfo( 'charset' ) ) );