wpsc_specials_widget_no_items_message

Located in: special_widgets.php

Functions that call this hook: wpsc_specials()

Arguments Accepted: __( 'We currently have no items on special.', 'wpsc' )

Version Introduced: 3.8.9

Description: Filter the “no items” message on Product Specials Widget.

Code in context:

[php highlight=”200″ firstline=”193″]

add_filter( ‘posts_join’, ‘_wpsc_filter_special_widget_join’ );

add_filter( ‘posts_where’, ‘_wpsc_filter_special_widget_where’ );

$special_products = new WP_Query( $args );

remove_filter( ‘posts_join’, ‘_wpsc_filter_special_widget_join’ );

remove_filter( ‘posts_where’, ‘_wpsc_filter_special_widget_where’ );

if ( ! $special_products->post_count ) {

echo apply_filters( ‘wpsc_specials_widget_no_items_message’, __( ‘We currently have no items on special.’, ‘wpsc’ ) );

return;

}

$product_ids = array();

[/php]