• Hello, I am trying to modify tdomf-form.php

    On lines 872 you find this:

    $post = array (
    	   "post_content"   => "",
    #	   "post_excerpt"   => "",
    	   "post_title"     => $def_title,
    	   "post_category"  => $post_cats,
    	   "post_author"    => $user_id,
    	   "post_status"    => 'draft',
    #	   "post_name"      => "",
    #	   "post_date"      => $post_date,
    #    "post_date_gmt"  => $post_date_gmt,
    #	   "comment_status" => get_option('default_comment_status'),
    #	   "ping_status"    => get_option('default_ping_status').
       );

    I want to add “post_password” => $password, to that array.

    My question is, how do I get $password to be = to the custom field “password” that ive set thru a widget in the form??

    Thanks!

    https://www.ads-software.com/extend/plugins/tdo-mini-forms/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter fanopolis

    (@fanopolis)

    I want the users to create password protected posts, for which only they know the password, so only they can comment (I already know how to password-protect the comments section)

    Thread Starter fanopolis

    (@fanopolis)

    Anyone?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: TDO Mini Forms] modify /include/tdomf-form.php to create post with password from custom fie’ is closed to new replies.