## How do you add customer capability after Woocommerce purchase?

Question
Can I do something like this to add a capability after someone purchases a product in my child's function file? Please note, I'm using s2member and woocommerce, and I am a newbie. add_action( 'cap_added', 'change_user_cap_with_purchase', 1 ); function change_user_cap_with_purchase ( ...
0
3 hours 0 Answers 2 views

## Highlight selected dates in CF7

Question
I have a contact form on my WordPress page and I use the datetimepicker-plugin for my clients to choose a date and a time for an appointment. I want that appointments that where already selected are highlighted in a different ...
0
3 hours 0 Answers 1 views

## Problem with phpmailer WordPress

Question
when I buy with Woocommerce I see the error "Internal Server Error" and into debug I see this problem: 2020-05-26T15:57:51+00:00 CRITICAL Cannot declare class phpmailerException, because the name is already in use in /httpdocs/wp-includes/class-phpmailer.php alla riga 4062 How I can resolve?
0
3 hours 0 Answers 2 views

## Alphabet filter for last name

Question
I'm trying to filter my professionals directory by last name using ajax. Right now I have other filters working using custom taxonomies and a drop down menu, but am having a hard time finding documentation online regarding filtering by last ...
0
4 hours 0 Answers 2 views

Question
I'm trying to create a small WordPress plugin that shows the WhatsApp link for all pages of WordPress site on the sidebar, like in the attached image. But I don't know the appropriate hook that would attach the link for all ...
0
5 hours 0 Answers 3 views

## php output Contact Form 7 – Repeatable Fields

Question
I'm using the plugin cf7 repeatable fields and I’m creating a form which saves a xml file while pressing submit button. I’m printing all the shortcodes of cf7 with $output .=$_POST[‘shortcode’]; but I’m not able to print any field of ...
0
9 hours 0 Answers 5 views

## wordpress output numbers from an array of checkboxes

Question
I'm not a php expert at all, but I've just started to learn it. I'm using a function on wordpress which creates a xml file after pressing send button on a contact form (with contact form 7). That's my code ...
0
10 hours 0 Answers 7 views

## How vincule a image with a product via mysql

Question
I want to introduce a product and its image via mysql using php script.I am not using wordpress functions. The problem is that I don't know how to make the product have the thumbnail that I specified and it is ...
0
10 hours 0 Answers 5 views

## Fatal error: Call to undefined function gwangi_body_open()

Question
Fatal error: Call to undefined function gwangi_body_open() in /home/techbee/public_html/wp/dating3/wp-content/themes/gwangi/header.php on line 39
0
14 hours 0 Answers 9 views

## Warning using plugin weglot

Question
Is there a solution to the next problem? I installed the weglot plugin. I have several other plugins installed already in my page. The following message appears on the mobile devices (iphone, ipad) not at my desktop search: Warning: Missing argument 2 for ...
0
23 hours 0 Answers 7 views