| Server IP : 103.48.194.25 / Your IP : 216.73.216.74 Web Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.33 System : Linux VMHostDefault 3.10.0-1160.42.2.el7.x86_64 #1 SMP Tue Sep 7 14:49:57 UTC 2021 x86_64 User : sieuthimay ( 1016) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/khohangtieudung.vn/public_html/wp-content/plugins/mtw-muticat/ |
Upload File : |
<?php
if(!empty($_POST['submit'] )) {
check_admin_referer( 'csrf_mtw_muticat' );
$mtw_muticat_name = (int) sanitize_key( isset( $_POST[ 'mtw_muticat_name' ] ) ? $_POST[ 'mtw_muticat_name' ] : null);
update_option('mtw_muticat_name', $mtw_muticat_name);
$mtw_muticat_name = get_option( 'mtw_muticat_name' );
}
?>
<div class="wrap">
<h2>Đặt số lượng sản phẩm cho mỗi danh mục sản phẩm</h2>
<?php if( isset($_GET['settings-updated']) ) { ?>
<div id="message" class="updated">
<p><strong>
<?php _e('Settings saved.') ?>
</strong></p>
</div>
<?php } ?>
<form method="post" action="<?php echo admin_url('admin.php?page=mtw-muti-category')?>">
<?php wp_nonce_field( 'csrf_mtw_muticat' );?>
<table class="form-table">
<tr valign="top">
<th scope="row">Số lượng sản phẩm</th>
<td><input type="text" name="mtw_muticat_name" id="mtw_muticat_name" value="<?php echo get_option('mtw_muticat_name'); ?>" /></td>
</tr>
</table>
<?php submit_button(); ?>
</form>
</div>