• Resolved petezeiry

    (@petezeiry)


    When users submit a product for sale, and include a link, is the a way to make the link nonclickable? Like how Craigslist does? I know this is possible with comment spam so im hoping its possible for this as it would cut down on spam. Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author HivePress

    (@hivepress)

    By default all URLs turn into links, but this may be possible via customizations. If you’re familiar with code please try using the_content filter hook for this purpose https://developer.www.ads-software.com/reference/hooks/the_content/

    Please use the official support forum if there are other issues https://community.hivepress.io/

    Thread Starter petezeiry

    (@petezeiry)

    Thank you for your reply. Can you give me a hand? it might help others too as im sure im not the only one that gets link spam.

    I have the following that applys to comment spam, but in this case want it to apply to the user generated content, and im not sure how. The first would apply to prevent WordPress from automatically creating links out of text URLs in the user submitted content, the second to prevent HTML link tags being used in the usser submitted content.

    remove_filter(‘comment_text’, ‘make_clickable’, 9);

    function remove_links( $comment_text) { $allowed_html = array( ‘br’ => array(), ’em’ => array(), ‘strong’ => array() ); $content = wp_kses( $comment_text, $allowed_html ); return $content; } add_filter( ‘get_comment_text’, ‘remove_links’, 2);

    Plugin Author HivePress

    (@hivepress)

    Please try using our official support forum https://community.hivepress.io/ We don’t use this one for providing support.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘stop visitors from leaving links, or make links nonclickable’ is closed to new replies.