strangerstudios/pmpro-member-directory

Filter to optionally not do embed, format site_url, or make hyperlinks clickable

Closed this issue · 3 comments

The directory and profile templates currently have some special handling for user meta or user object fields that show as a single line links in a few spots such as:

This issue is to request a filter for each time we run the special treatment of field user_url, "wp_oembed_get", or "make_clickable" and allow each to be disabled so only the URL appears. It may be best to always fall back to "make_clickable" rather than wp_oembed_get or the formatting user_url.

Some links people may want to turn into an embed, such as a YouTube or another type of media. Whatever we choose here let's make sure that there is a way to allow some embeds for certain URLS.

Side note - the URL itself becomes an embed when its another WordPress site and I believe may rely on JetPack. Need to confirm this.

This is connected to this other issue: #90

If we have a filter, run it on the user_email field as well as any meta fields.

This was reworked in #111