نیازی به این کار نیست
شما میتونی بین این 2 تا تگ قرار بدی محتوایی رو که میخوای پنهان کنی
[member]
[/member]
این کد رو هم تو function.php قالبت بزارکد:<?php function member_check_shortcode( $atts, $content = null ) { if ( is_user_logged_in() && !is_null( $content ) && !is_feed() ) return $content; return ''; } add_shortcode( 'member', 'member_check_shortcode' ); ?>