Remove is_shortcode_loop
This commit is contained in:
parent
07792a253b
commit
e343c99ccb
|
@ -276,21 +276,6 @@ if ( ! function_exists( 'is_filtered' ) ) {
|
|||
}
|
||||
}
|
||||
|
||||
if ( ! function_exists( 'is_shortcode_loop' ) ) {
|
||||
|
||||
/**
|
||||
* Returns true when called within a loop generated by a products shortcode.
|
||||
*
|
||||
* @since 3.3.0
|
||||
* @return bool
|
||||
*/
|
||||
function is_shortcode_loop() {
|
||||
global $woocommerce_loop;
|
||||
|
||||
return apply_filters( 'woocommerce_is_shortcode_loop', ! empty( $woocommerce_loop['shortcode'] ) );
|
||||
}
|
||||
}
|
||||
|
||||
if ( ! function_exists( 'taxonomy_is_product_attribute' ) ) {
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue