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)
Translate manually Wordpress
add_filter( 'gettext', function( $translated, $original, $domain ) { // Senarai penggantian (case-insensitive) $map = array...
-
Press Windows + S , search for "Environment Variables" , and select: 👉 "Edit the system environment variables" Click...
-
/* Responsive Styles */ @media (max-width: 768px) { add ccs here } @media (max-width: 480px) { add css here ...