Sedang Disiapkan

224437 Make Plugin Work for WP 2.5.X

I need to get the Hide This Plugin ([url removed, login to view]) working for Wordpress 2.5

It is a really basic plugin - Here's all the code:

add_filter('the_content', 'hide_some_content');

function hide_some_content($content) {

global $current_user, $user_ID;

if (($current_user->id == 0) && ($user_ID == 0)){

$b = strpos($content, '<!--hidethis-->');

$e = strpos($content, '<!--/hidethis-->');

$pre = substr($content,0,$b);

$suf .= substr($content,$e,strlen($content));

return $pre.$suf;

} else { return $content; }

}

Kemahiran: Semua Boleh, PHP, Wordpress

Lihat lebih lanjut: work for wordpress, code org 5 b, code org 5 a, wordpress x, hide wordpress, php function hide, hide plugin, plugin content wordpress, edwards php, substr, make the_content function wordpress, hide function php, wordpress add_filter, plugin work, function the_content, wordpress return the_content, the_content function wordpress, wordpress function the_content, php wordpress the_content, the_content, wordpress the_content, content plugin, the_content wordpress, wordpress the_content function

Tentang Majikan:
( 19 ulasan ) State College, United States

ID Projek: #1970673

Dianugerahkan kepada:

johnkolbertsl

Hi, great news. I'm ready to hand over the code. See PMB for details. -John

$30 USD dalam 0 hari
(0 Ulasan)
0.0