/** * Limits characters in the price field. * @since 3.3.1 */ function cp_limit_characters_in_price_field( $args ) { $args['maxlength'] = 15; return $args; } add_filter( 'cp_formbuilder_cp_price', 'cp_limit_characters_in_price_field' );
function cp_set_default_city( $args ) { global $current_user; get_currentuserinfo(); $args['value'] = 15; return $args; } add_filter( 'cp_formbuilder_cp_city', 'cp_set_default_city' );
There are currently 1 users browsing this thread. (0 members and 1 guests)