Cart / Checkout: Add Theme Classes to Radio Options

Add custom theme class to radio label elements on product and cart Autoship Options

Important: Always test customizations to your site on a staging environment before making changes to your live / production site.  If you are not experienced with testing changes on a staging site, here is a good article to review.

/**
* Adds a custom theme class to the label elements on the Product and Cart Autoship options.
*
* @param array $skin The array of elements and associated classes/
* @return array The filtered Skin Classes
*/
function xx_adjust_label_classes_via_skin( $skin ){

  $skin['label'] .= ' border';
  return $skin;
  
}
add_filter( 'autoship_product_schedule_options_select_skin', 'xx_adjust_label_classes_via_skin', 10, 1 );

Still need help? Contact Us Contact Us