Skip to content

Instantly share code, notes, and snippets.

@actual-saurabh
Created July 1, 2019 16:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save actual-saurabh/0e1dde5654ecfac05189754dd06d5255 to your computer and use it in GitHub Desktop.
Save actual-saurabh/0e1dde5654ecfac05189754dd06d5255 to your computer and use it in GitHub Desktop.
Change LifterLMS registration field column class (llms-cols-6, etc)
<?php // Do not copy this line.
// Copy from under this line and paste into your child theme's functions.php.
add_filter( 'lifterlms_get_person_fields', 'llms_change_form_cols', 10, 1 );
function llms_change_form_cols( $fields ) {
foreach ( $fields as $field ) {
if ( $field['id'] === 'llms_billing_city' ){
$field['columns'] = 9;
}
}
return $fields;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment