Support » Plugin: Linkify Text » Is this still active? Anything similar out there?

Viewing 1 replies (of 1 total)
  • https://wordpress.org/plugins/linkify-text/faq/

    Yes, works, but didnt found any similar (human auto link from themeforest sucks)

    Still, this does not work with latest version of your plugin: WP => https://wordpress.org || This is the link title

    [ Moderator note: code fixed. Please wrap code in the backtick character or use the code button. ]

    
    function add_title_attribute_to_linkified_text( $display_link, $text_to_link, $link_for_text, $text_to_link ) {
        // The string that you chose to separate the link URL and the title attribute text.
        $separator = ' || ';
    
        // Only change the linked text if a title has been defined
        if ( false !== strpos( $link_for_text, $separator ) ) {
            // Get the link and title that was defined for the text to be linked.
            list( $link, $title ) = explode( $separator, $link_for_text, 2 );
    
            // Make the link the way you want.
            $display_link = '<a href="' . esc_url( $link ) . '" title="' . esc_attr( $title ) . '">' . $text_to_link . '</a>';
        }
    
        return $display_link;
    }
    add_filter( 'c2c_linkify_text_linked_text', 'add_title_attribute_to_linkified_text', 10, 4 );
    
    • This reply was modified 3 years, 2 months ago by  Jan Dembowski.
    • This reply was modified 3 years, 2 months ago by  Jan Dembowski. Reason: Fixing code block formatting
Viewing 1 replies (of 1 total)
  • The topic ‘Is this still active? Anything similar out there?’ is closed to new replies.