Send Messaging, Private Messaging Functionality.
-
Hey
Topic: Send Messaging, Private Messaging Functionality.
Under new GDPR regulations in europe we are trying to minimize customer data exposure and getting the customer to do the least amount of work when messaging.
With the default setting in wp-adverts it exposes phone number and email of users that post adverts, this can be changed by:
Enabling the wp-adverts Contact Form
– which displays a contact form instead of contact details (Send Message).This is step in the right direction for us, so we enabled Private Messaging through the wp-advert buddy press intergration plugin, great feature!.
We would now like to disable:
1) Send Message
2) Show Contact DetailsAnd just have a Private Message button. We already looked at the general plugin customization as advised through the wp-advert docs with excellent guide https://wpadverts.com/documentation/child-themes-and-templates/
It appears that:
function ‘adverts_single_contact_information( $post_id )’
– located in ‘functions.php’, callback for ‘do_action(‘adverts_tpl_single_bottom’, $post_id)’
– located in in ‘/templates/single.php’If the do action is removed from single.php it also removes all messaging + Private Messaging feature which we want to keep.
If we replace the contents of the function ‘adverts_single_contact_information( $post_id )’ and just have it return an empty div <div></div> then it seems to do the job. The trouble is if the wp adverts plugin is updated it will return to displaying the contact form or worse the contac details. not good!
The end goal is to have a a ‘Private Message’ button only at the end of the adverts page and when selected populates the ‘send to’ field with the advert sellers @username
ready to go!Thanks
J
- The topic ‘Send Messaging, Private Messaging Functionality.’ is closed to new replies.