Search
 
SCRIPT & CODE EXAMPLE
 

PHP

membership_registration: city or town

add_filter( 'wcfm_membership_registration_fields_address', function( $address_fields ) {
	if( isset( $address_fields['city'] ) ) { 
	  $address_fields['city']['custom_attributes'] = array( 'required' => 1 );
	}
	$address_fields = wcfm_hide_field( 'addr_1', $address_fields );
	$address_fields = wcfm_hide_field( 'addr_2', $address_fields );
	$address_fields = wcfm_hide_field( 'state', $address_fields );
	$address_fields = wcfm_hide_field( 'zip', $address_fields );
	$address_fields = wcfm_hide_field( 'country', $address_fields );
	return $address_fields;
}, 50 );
Comment

PREVIOUS NEXT
Code Example
Php :: laravel postgres deadlock 
Php :: how i can send by database table in laravel full calendar 
Php :: if order has product id in array 
Php :: Limit number of words to be displayed on blog post excerpt with Laravel 
Php :: php array associatif move element 
Php :: wp query compare like and or 
Php :: ob_start store variable in php 
Php :: Primary Termmaatwebsite/excel store s3 
Php :: tina4 save file to database in orm 
Php :: phpmyadmin timedeconnexion : a placer tt en bas dans "config.inc.php" 
Php :: obtener tipo 
Php :: how to remove payment link in invoice woocommerce 
Php :: .htaccess Preventing access to your PHP includes files 
Php :: php array key value print 
Php :: php mysql remove by timestamp older than a month 
Php :: livewire modal to datetime-local 
Php :: woo account page 
Php :: VerifyEmailController in Api 
Php :: wcfm filter vendor dashboard widgets 
Php :: omnipay capture 
Php :: onde que fica a praia escondida no roblox jo mulher maravilha 
Php :: php pdo check if record exists before insert 
Php :: get header sent var 
Php :: convert php array into json online 
Php :: how to payment credit card in codeigniter authorized.net 
Php :: iterate over assets container statamic 
Php :: run php code online 
Php :: strrev 
Php :: php getUserStateFromRequest 
Php :: docker php-fpm 
ADD CONTENT
Topic
Content
Source link
Name
4+7 =