Current Path : /storage/v11800/testtest/public_html/wp-content/plugins/google-listings-and-ads/views/inputs/ |
Linux v11800 5.3.0-1023-aws #25~18.04.1-Ubuntu SMP Fri Jun 5 15:19:18 UTC 2020 aarch64
|
Current File : /storage/v11800/testtest/public_html/wp-content/plugins/google-listings-and-ads/views/inputs/integer.php |
<?php
declare( strict_types=1 );
defined( 'ABSPATH' ) || exit;
/**
* @var \Automattic\WooCommerce\GoogleListingsAndAds\View\PHPView $this
*/
/**
* @var array $input
*/
$input = $this->input;
$input['type'] = 'number';
// Not so "custom" but standard `<input type="number">` attribute.
$input['custom_attributes'] = [
'min' => '0',
];
woocommerce_wp_text_input( $input );