call out shortcode on wp backend
-
Hi. what if I do something like this is the backend
<?php
$enc_user = wp_get_current_user();
$user_role = json_encode($enc_user->roles);
echo gettype($user_role);
echo $user_role;if ($user_role == ‘[“subscriber”]’ || $user_role == null){
echo “saadsa”;
[[ultimatemember form_id=”79″]] /* what syntax should I place here so it will actually display on my frontend? */
} else {
echo “saaaa”;
}
?>thank you so much for your response.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘call out shortcode on wp backend’ is closed to new replies.