Viewing 1 replies (of 1 total)
  • Plugin Author Shea Bunge

    (@bungeshea)

    The snippet you have will run the code on all pages except for the page with ID 18.

    If you want to exclude page ID 18, you need to write it like this:

    add_filter( 'woocommerce_get_image_size_thumbnail', function ( $size ) {
    	if ( ! is_page( 18 ) ) {
    		return $size;
    	}
    
    	return array(
    		'width'  => 1000,
    		'height' => 600,
    		'crop'   => 1,
    	);
    } );
Viewing 1 replies (of 1 total)
  • The topic ‘Apply a snippet on one page only’ is closed to new replies.