Hi,
it is technically possible to remove the email address but you can easily run into some problems when the email address is not filled.
You can install the GDPR compliance snippet it will add checkbox(es) to the publication form https://github.com/simpliko/wpadverts-snippets/blob/master/gdpr-compliance-for-wpadverts/gdpr-compliance-for-wpadverts.php You can install the snippet as explained here https://github.com/simpliko/wpadverts-snippets/ at the bottom of the page.
Thread Starter
Andrea
(@lollipoppingu)
Hi Greg, thanks for the reply.
The GDPR snippet works correctly thanks.
Regarding the email I would like to leave it in the advert creation form, but I would like it not to be seen when clicking on “Show contact info”.
Thank you
Hi,
you can hide the email address on the Ad details pages by adding the code below in your theme functions.php file (or even better by creating a new blank plugin and adding it there https://wpadverts.com/blog/how-to-use-code-snippets-in-wordpress/)
add_filter( "wpadverts/block/get/contact/reveal/options", function( $args, $post_id ) {
if( isset( $args["adverts_email"] ) ) {
unset($args["adverts_email"]);
}
return $args;
}, 20, 2 );
Thread Starter
Andrea
(@lollipoppingu)
Hi Greg,
sorry I have another request (the last one).
On the ad details pages, is it possible to also remove the name?
Thank you
Hi,
do you mean to remove the name of the person who posted the Ad (ie the value entered in the Contact Person field)? If so then we do not have such option right now i am afraid, but in the version 2.2 planned for this year you will be able to remove the Author block from the Ad details which will hide user name and avatar.
Thread Starter
Andrea
(@lollipoppingu)
Ok I will wait for the new version, thanks