Hide form from unregistered users

Home Forums Quform WordPress Hide form from unregistered users

This topic is: resolved
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #5511
    MAXIS322718
    Participant

    Hello my question is, how can do whatever form seen only registered users. This design does not work

    function mytheme_post_to_another_script($form)
    {
    if ( is_user_logged_in() ) {
    if (function_exists('iphorm')) echo iphorm(3);
    } else {

    echo 'Hello world';
    }
    }
    add_action('iphorm_post_process_3', 'mytheme_post_to_another_script', 10, 1);

    Please tell me how can I do this?

    #5512
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #5513
    MAXIS322718
    Participant

    This method does not work.
    I have already tried. He brings that’s it [iphorm id=”3″ name=”Group layouts”] i.e.
    himself shortcode and form doesn’t work.
    Need to find another way.

    #5514
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #5516
    MAXIS322718
    Participant

    Everything is working now
    Thank you very much

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy