woocommerce_form_field_args

woocommerce_form_field_args

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.3.3

apply_filters('woocommerce_form_field_args') is found 1 times:

  • /includes/wc-template-functions.php line 2854
    			'checked_value'     => '1',
    		);
    
    		$args = wp_parse_args( $args, $defaults );
    		$args = apply_filters( 'woocommerce_form_field_args', $args, $key, $value );
    
    		if ( is_string( $args['class'] ) ) {
    			$args['class'] = array( $args['class'] );
    		}
    
    		if ( $args['required'] ) {