WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: TDO Mini Forms] Private Post (2 posts)

  1. openiq
    Member
    Posted 4 years ago #

    Hello,

    I have a site where a user comes, logs in, by logging in he/she gets acces to a tdo mini form.

    Is there a way to make posts created by the tdo mini form become Private? The idea is that the user can only see his posts created by tdo mini forms.

  2. openiq
    Member
    Posted 4 years ago #

    Got it,

    It's quite nasty but it gets the job done:

    1. edit tdo-mini-forms/include/tdomf-form.php

    line 987  "post_status"    => 'publish',

    to

    line 987  "post_status"    => 'private',

    2. edit tdo-mini-forms/tdomf-form-post.php

    line 163 if(get_post_status($post_id) == 'publish') {

    to

    line 163 if(get_post_status($post_id) == 'private') {

    It would be nice to be able to change it from the admin panel though.

Topic Closed

This topic has been closed to new replies.

About this Topic