Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author DBAR Productions

    (@dbar-productions)

    This plugin will integrate with the PTA Member Directory plugin, allowing you to specify a member or position from the directory as contacts, and then it will go through the contact form instead of putting the explicit email link on the page. That’s the way it was developed for our PTA site, and is how we use it, so I have not thought about people not wanting to have an email link listed on a page (and, since most people have spam filtering on their accounts now by necessity).

    Since I will be releasing an update soon for the database character set settings, I will see if I can add either a filter that will allow that email to be modified/removed on output, or add an additional option to not publish emails on the page, and leave it up to the admin to decide how they want to provide contact info for people who may want to learn more before signing up for something.

    Plugin Author DBAR Productions

    (@dbar-productions)

    Here is the Member Directory plugin link:
    https://www.ads-software.com/plugins/pta-member-directory/

    In case you want to go with that solution.

    Plugin Author DBAR Productions

    (@dbar-productions)

    Just taking a look at this, and I see that I already have a filter hook in place to modify the chair display info before it is output, so you could use that to remove the email or not even show the contact info at all.

    It’s on line 439 in the class-pta_sus_public.php file:
    $display_chair = apply_filters( 'pta_sus_display_chair_contact', $display_chair, $sheet );

    So, if you wanted to totally remove the chair contact info, you would put something like this into your theme’s functions.php file (not tested):

    function remove_pta_chair_display($display_chair, $sheet) {
       return '';
    }
    add_filter('pta_sus_display_chair_contact', 'remove_pta_chair_display', 10, 2);
    Thread Starter vipteam

    (@vipteam)

    Now is tested. Great! This works!

    I have inserted this in functions.php of my child theme. This completely removes the chair contact info. And now everything looks really nice.

    Thank you very much for the great support!

    Regards

    Plugin Author DBAR Productions

    (@dbar-productions)

    New option has been added in version 1.8 to now completely hide the contact info, so you won’t need to use that filter function any more.

    Thread Starter vipteam

    (@vipteam)

    Excellent! Thank you!

    Regards

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to hide email address of Event Chair?’ is closed to new replies.