Events Manager
[resolved] [REQ] Autolink (linkify) URLs in Event and Location descriptions (4 posts)

  1. Daedalon
    Posted 2 years ago #

    We currently employ https://github.com/iamcal/lib_autolink in our Events Manager customizations for #_EVENTNOTES, #_EVENTEXCERPT, #_LOCATIONNOTES and #_LOCATIONEXCERPT.

    include( 'lib_autolink.php' );
    if( function_exists( 'autolink' ) && function_exists( 'autolink_email' ) ) {
    	$replace = autolink( autolink_email( $replace ) );

    This feature and a setting to turn it on/off might be worth adding to Events Manager core.


  2. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 2 years ago #

    this is the sort of reason we use hooks for :)

    had a quick look, couldn't find but would be surprised if there's no wp plugin that does this, you'd just hook into the_content I'd say

  3. Daedalon
    Posted 2 years ago #

    I found a few plugins, tried the two that were updated within the last two years and neither of them could help with content that was output by Events Manager.

    The other one was http://wordpress.org/extend/plugins/auto-hyperlink-urls/, updated 2011-07-26. Don't remember the other one anymore. Haven't dug into the code of this one to know if it they use a filter with the_content and with correct attributes to have it be fired after EM has done its magic. I opened a support ticket some time ago: http://wordpress.org/support/topic/support-events-managers-custom-post-types-events-and-locations

    Marcus: If you know of a proper invocation and want to share, that might speed up the process of getting that plugin fixed to support EM and other plugins.

  4. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 2 years ago #

    can't give you advice on that specific plugin, but if you want to just apply something to EM, particularly the description bit, you could use this filter, as we use for various the_content filters -

    add_filter('dbem_notes', 'wpautop');

    you could probably run a preg_replace making sure it's not within an a link already - https://www.google.com/search?q=preg_replace+make+links

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Events Manager
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.