How to add multiple product gallery images from front-end

if ( ! empty( $_FILES[‘muti_files’] ) ) { $files = $_FILES[‘muti_files’]; foreach ($files[‘name’] as $key => $value){ if ($files[‘name’][$key]){ $file = array( ‘name’ => $files[‘name’][$key], ‘type’ => $files[‘type’][$key], ‘tmp_name’ => $files[‘tmp_name’][$key], ‘error’ => $files[‘error’][$key], ‘size’ => $files[‘size’][$key] ); } $_FILES = array(“muti_files” => $file); $i=1; foreach ($_FILES as $file => $array) { if ($_FILES[$file][‘error’] !== … Read more

Change font size in products listing pages in woocommerce

Another option would be to use the current_screen hook add_action( ‘current_screen’, ‘my_admin_listing_custom_styles’ ); function my_admin_listing_custom_styles() { $current_screen = get_current_screen(); if( ‘edit’ == $current_screen->base && ‘product’ == $current_screen->post_type) { // Run some code, only on the admin products listing page for e.x add css style ?> <style type=”text/css”> a.row-title {font-size: 18px !important;} </style> <?php } }

Woocomerce language

This is pretty common issue with translations. If you have downloaded po/mo woocommerce translation files, you probably put them now in wp-content/woocommerce/languages folder. Please if this is the case try to move them to global languages folder in wp-content/languages/plugins. Also note that if you are moving them to global folder they should look something like … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)