function member_only_shortcode($atts, $content = null)
{
if (is_user_logged_in() && !is_null($content) && !is_feed()) {
return $content;
}
}
add_shortcode('member_only', 'member_only_shortcode');
[member_only]User is logged in.[/member_only]
All muhaza's note in developing website. Front-end & uiux method. Real life implementation for webdesigner.
Thursday, 6 October 2022
Subscribe to:
Comments (Atom)
Tembus Gmail dengan TXT record
Type: TXT Name: @ / domainname.com Loadtime : 14400 Value: v=spf1 a mx ip4:SERVER_IP include:netkl.org ~all
-
Press Windows + S , search for "Environment Variables" , and select: 👉 "Edit the system environment variables" Click...
-
function member_only_shortcode($atts, $content = null) { if (is_user_logged_in() && !is_null($content) && !is_feed()) { ...