hnbraymund
Forum Replies Created
-
Hi. @champsupertramp I want to do something like this. I want to display the form when a certain condition is meet. but I don’t know the syntax on how can I call the form itself. Please see the link. this is a screenshot on the code and as you can see there, it was marked as syntax error. https://drive.google.com/file/d/1Sfts3qf9Sc_Gkj_YrE0y3jIk_5HoftEW/view?usp=sharing
thank you so much!
- This reply was modified 4 years, 5 months ago by hnbraymund.
Hi sir @champsupertramp I already created another topic. Your response is very much appreciated. thank you so much! here is the link https://wordpress.org/support/topic/call-out-shortcode-on-wp-backend/
Hi @champsupertramp Your response is very much appreciated.
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.