Changeset 2926851
- Timestamp:
- 06/16/2023 03:33:05 AM (3 years ago)
- File:
-
- 1 edited
-
clickable/trunk/clickable.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
clickable/trunk/clickable.php
r2926850 r2926851 4 4 * Description: Converts URLs in a post content to clickable links 5 5 * Plugin URI: https://wordpress.org/plugins/clickable 6 * Author: Nazmul Ahsan6 * Author: Codexpert, Inc 7 7 * Author URI: https://codexpert.io 8 8 * Version: 0.9 … … 25 25 add_filter( 'the_content', 'clickable_content' ); 26 26 function clickable_content( $content ) { 27 if( ! is_singular() ) return $content;27 if( ! is_singular() ) return $content; 28 28 29 global $post;29 global $post; 30 30 31 $content = wpautop( make_clickable( $post->post_content ) );31 $content = wpautop( make_clickable( $post->post_content ) ); 32 32 33 return $content;33 return $content; 34 34 }
Note: See TracChangeset
for help on using the changeset viewer.