Posts

How to get color code in woocommerce color attribute by slug in wordpress

You can get color code in wordpress woocommerce color attribute by slug in wordpress. You can use this code wordpress plugin woocommerce-products-filter also By using just simple code. First you need to get the $term['term_id']. This can be array Or object $term->term_id according to your page Use this code then for array: $color_code_array = get_term_meta($term['term_id']); $colorp = $color_code_array['color_value'][0]; // #000111 Use this code then for Object: $color_code_array = get_term_meta($term->term_id); $colorp = $color_code_array['color_value'][0]; // #000111 Now you print echo $colorp; // #000111

How to Rename additional information, description, reviews tab woocommerce in porto theme

Renaming Tabs Use the following snippet to rename tabs. You just create a child theme if you know how to create or just edit the current theme in function.php Add this code at the end /** * Rename product data tabs */ add_filter( 'woocommerce_product_tabs', 'woo_rename_tabs', 98 ); function woo_rename_tabs( $tabs ) { $tabs['description']['title'] = __( 'More Information' ); // Rename the description tab $tabs['reviews']['title'] = __( 'Ratings' ); // Rename the reviews tab $tabs['additional_information']['title'] = __( 'Product Data' ); // Rename the additional information tab return $tabs; }

Themify WooCommerce Product Filter shows category disabled if we redirect a page then we choose another category we can not back to previous category.

Themify WooCommerce Product Filter shows category disabled if we redirect a page then we choose another category we can not back to previous category. To solve this problem. go to: /themify-wc-product-filter/includes/class-wpf-form.php Go to line no. 1111 Then replace this line $read_only = 'readonly'; to $read_only = ''; Themify WooCommerce Product Filter - now to enable the filter radio button when a category chooses.

How to hide an email before @ in php?

If you are looking for a function in which you want a code to hide email before @ so just copy and paste this code. function hide_mail($email) {     $mail_part = explode("@", $email);     $mail_part[0] = str_repeat("*", strlen($mail_part[0]));     return implode("@", $mail_part); } Pass email id in it and this will hide the email before @ // *************@gmail.com

How to hide Phone number in PHP with different format?

How to hide phone number in PHP. I am using phone number in pp but i want a function in which i can add star in my phone number so can user can not read a phone number only some number will be visible and some number will be with asterisk. So i created a function in which i have added a code. You can just change the logic and change the format of phone number to hide the number. function stars($phone) { $times=strlen(trim(substr($phone,4,5))); $star =''; for ($i=0; $i <$times ; $i++) {  $star.='*'; } return $star; } // 99******54 above function will print a number like this

My AOC monitor C24V1H curved sound not working?

Image
Today I bought a monitor AOC Curved C24V1H and I did everything but sound not working. What is the problem? Actually this version of AOC C24V1H sound not working because it has no speaker builtin. It has speaker space and audio jack to connect the speaker but it has no speaker. If you will search on the internet and find a PDF file of AOC C24V1H then you will find that there is no built-in Speaker in this monitor. I struggled so much to this then I found that AOC C24V1H does not has a speaker. Hope you found the Answer.

Will you fight for Priyanka Reddy? Priyanka Reddy murder - Time to fight back!

Image
Are women safe in India? 27-year-old veterinarian raped and murdered, charred body found   The scaring sexual assault and burning alive of a young veterinary doctor has shocked the India. Justice for Dr. Priyanka Reddy Here is the full  story As People are saying, that four people had already planned the crime after they had noticed that the  veterinary doctor  had parked her two-wheeler at the Tondu pally toll plaza. Those four people assumed that the doctor(Priyanka Reddy) would come to pick it up later in the evening or at night. Accused then punctured the tyre. Hyderabad Doctor Murder Case As Priyanka Reddy was coming to home from work, after 8:00 pm to pick her Scooty, she noticed a tyre is punctured or flat. She immediately called her sister and said all these thing, who suggested that she leave her Scooty on the same place and take a cab home. Before she could do anything, two men asked her to help, who offered to take her vehicle for repair. Lady