Created
July 1, 2019 16:51
-
-
Save actual-saurabh/0e1dde5654ecfac05189754dd06d5255 to your computer and use it in GitHub Desktop.
Change LifterLMS registration field column class (llms-cols-6, etc)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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