Php and shortcodes
-
Hi,
I’m using a plugin to restrict certain content by using a shortcode the plugin has provided.
Now I want to use this shortcode only when someone is logged in.
So my php code on my WordPress page is:
<?php
if ( is_user_logged_in() ) {
echo “[pms-register]”;
}
?>But this doesn’t work. Does someone know the solution?
Thanks,
Sylvia
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘Php and shortcodes’ is closed to new replies.