Plugin Directory

Changeset 2926851


Ignore:
Timestamp:
06/16/2023 03:33:05 AM (3 years ago)
Author:
mukto90
Message:

initial release

File:
1 edited

Legend:

Unmodified
Added
Removed
  • clickable/trunk/clickable.php

    r2926850 r2926851  
    44 * Description: Converts URLs in a post content to clickable links
    55 * Plugin URI: https://wordpress.org/plugins/clickable
    6  * Author: Nazmul Ahsan
     6 * Author: Codexpert, Inc
    77 * Author URI: https://codexpert.io
    88 * Version: 0.9
     
    2525add_filter( 'the_content', 'clickable_content' );
    2626function clickable_content( $content ) {
    27     if( ! is_singular() ) return $content;
     27    if( ! is_singular() ) return $content;
    2828
    29     global $post;
     29    global $post;
    3030
    31     $content = wpautop( make_clickable( $post->post_content ) );
     31    $content = wpautop( make_clickable( $post->post_content ) );
    3232
    33     return $content;
     33    return $content;
    3434}
Note: See TracChangeset for help on using the changeset viewer.