Home Forums Plugin Support WP User Frontend (Free Version) Visibility Option in Front End

This topic is: not resolved

This topic contains 2 replies, has 2 voices, and was last updated by  Jason Cowart 3 years, 8 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #64537

    Jason Cowart
    Member
    Post count: 1

    I would like to give the user the option of posting privately or publicly. I have researched for a good while and have only come across this code:

    $post_stat_value = trim( $_POST[‘cf_visibility'] );
    if ($post_stat_value == “Public”){
    $post_stat = “publish”;
    } else {
    $post_stat = “private”;
    }

    however, I cannot seem to get it to work.

    Do you have any suggestions on how I could easily add this option?

    Thanks. The plugin is great.

    #64640

    towhid
    Participant
    Post count: 4505

    Hello Jason,

    To avail this kind of addition you have to customize the plugin. But I am really sorry to say that we do not provide any customization services. If you need this option very urgently you can hire a developer you can do the customization on your own if you know how to programming.

    You can follow how the WPUF settings page works. How if……. else works for a certain condition. Then you can accomplish if ($post_stat_value == “Public”) and if ($post_stat_value == “Private”)

    Thanks

    #64662

    Jason Cowart
    Member
    Post count: 1

    Sorry, I do not follow your instruction.

    How can I research this: “You can follow how the WPUF settings page works. How if……. else works for a certain condition. Then you can accomplish if ($post_stat_value == “Public”) and if ($post_stat_value == “Private”)”

    thanks

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Visibility Option in Front End’ is closed to new replies.