I’m a newbie, he can hide text and other information but not your player
Hope to get your advice. thank you very much
Add the code to the Functions.php file
//Part of the content is visible
function login_to_read($atts, $content=null) {
extract(shortcode_atts(array(“notice” => ‘
<p>Tips: The content here needs to be login to view!</p>
//Here you can add styles, the front end display is more beautiful。
‘), $atts));
if ( is_user_logged_in() && !is_null( $content ) && !is_feed() )
return $content;
return $notice;
}
add_shortcode(‘vip’, ‘login_to_read’);
Here we set the content that needs to be hidden in this short code when editing the article
[vip] Hidden content[/vip]
I want to hide your player so that you can only see it after logging in
thank you
jack