¿Cómo cambiar la posición de recorte de miniaturas de WooCommerce?

Estoy tratando de cambiar la posición de recorte de miniaturas de WooCommerce. Encontré que este código puede ayudar a cambiar el tamaño:

add_action( 'init', 'yourtheme_woocommerce_image_dimensions', 1 );

/**
 * Define image sizes
 */
function yourtheme_woocommerce_image_dimensions() {
    $catalog = array(
        'width'     => '100',   // px
        'height'    => '100',   // px
        'crop'      => 0
    );

    // Image sizes
    update_option( 'shop_catalog_image_size', $catalog );       // Product category thumbs
}

Intenté algo como cambiar de cultivo0 aarray("center", "bottom") pero no funciona:

function yourtheme_woocommerce_image_dimensions() {
    $catalog = array(
    'width'   => '300', // px
    'height'  => '400', // px
    'crop'    => 'array("center", "bottom")'
  );

  // Image sizes
  update_option( 'shop_catalog_image_size', $catalog );     // Product category thumbs
}

Y también esto sin éxito:

if (function_exists( 'add_image_size' )){
  add_image_size( 'shop_catalog', 300, 400, array( 'center', 'bottom' ) );
}

¿Hay alguna forma de que pueda cambiarlo?

Gracias.

Respuestas a la pregunta(1)

Su respuesta a la pregunta