이 플러그인은 최근 3개의 주요 워드프레스 출시와 시험 되지 않았습니다. 워드프레스의 좀 더 최근 버전으로 이용할 때 더 이상 관리되지 않고 지원되지 않고 호환성 문제가 있을 수 있습니다.

Make Clickable Tweet

설명

In a recent project, I had a bunch of tweet content saved and needed a way to convert all URLs, hashtags, and user mentions into clickable links. I found that WordPress has a built-in function called make_clickable(), but it just works with plain URLs, so I took it one more step to make_clickable_tweet(). It’s basically a regular expression wrapped in a simple function, but I figured someone else out there might need it.

설치

Using the plugin is pretty dang simple, as the function only has one parameter: the content you wanted returned in a clickable form. To use the plugin, simply activate it then start using the function in your templates like so:

<?php make_clickable_tweet($tweetcontent); ?>

Of course, that above function will simply return the tweet content, if you’d like to display it in your templates you might want to toss an echo in front there.

If you want to be super-duper safe (and smart), you might want to wrap the whole thing

<?php
if (function_exists('make_clickable_tweet'))
{
make_clickable_tweet($tweetcontent);
}
?>

FAQ

Why did you make this?

I had a bunch of tweet data that I needed to render like a real tweets.

후기

이 플러그인에 대한 평가가 없습니다.

기여자 & 개발자

“Make Clickable Tweet”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

자국어로 “Make Clickable Tweet”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하세요.

변경이력

0.2

Changed order of regular expressions.

0.1

Release