woocommerce_print_r_alternatives

woocommerce_print_r_alternatives

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

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_print_r_alternatives') is found 1 times:

  • /includes/wc-core-functions.php line 2183
    			'args' => array( $expression ),
    		),
    	);
    
    	$alternatives = apply_filters( 'woocommerce_print_r_alternatives', $alternatives, $expression );
    
    	foreach ( $alternatives as $alternative ) {
    		if ( function_exists( $alternative['func'] ) ) {
    			$res = $alternative['func']( ...$alternative['args'] );
    			if ( $return ) {
    				return $res; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped