Forums

TDO Mini Forms
modify /include/tdomf-form.php to create post with password from custom fie (3 posts)

  1. fanopolis
    Member
    Posted 9 months ago #

    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!

    http://wordpress.org/extend/plugins/tdo-mini-forms/

  2. fanopolis
    Member
    Posted 9 months ago #

    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)

  3. fanopolis
    Member
    Posted 9 months ago #

    Anyone?

Reply

You must log in to post.

About this Plugin

About this Topic