作者:小影
<pre> <?php if( current_user_can('level_10') ) : ?> [等级2级及以上才可见] <?php endif; ?> </pre> 应该是要这样吧?
View Article作者:Chienjay
找到另外一種方法了 去functions.php加入下列代碼 add_shortcode( 'member', 'member_check_shortcode' ); function member_check_shortcode( $atts, $content = null ) { if ( is_user_logged_in() && !is_null( $content )...
View Article作者:WordPress的特定内容只对管理员可见 | idea2m.想象力即财富
[...] 2011-01-12 / WordPress / WordPress, 代码, 管理员 / 3,421ºC 23 [...]
View Article
More Pages to Explore .....