[Plugin: TDO Mini Forms] modify /include/tdomf-form.php to create post with password from custom fie
-
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!
Viewing 2 replies - 1 through 2 (of 2 total)
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.