From "textarea field" to "Comments"
Author | Posts |
---|---|
April 21, 2013 at 8:59 am 2633 | |
Hello, ¿It's possible to pass info from the "textarea form field" to a "Comment" for that post? Thank you. | |
April 21, 2013 at 11:56 am 2643 | |
It might be possible, but I am not sure about your context. What you are trying do? | |
April 21, 2013 at 2:13 pm 2644 | |
That can be done using action hook provided by the plugin. [php] if ( !empty( $message ) ) { $comment_id = wp_insert_comment( $commentdata ); if ( class_exists( ‘CommentRatingFieldPlugin’ ) ) { add_action( ‘wpuf_add_post_after_insert’, ‘wpufe_insert_first_comment’ ); For the use of this snippet, insert this code into your themes functions.php. You need to add a custom field into your form with the meta key `comment`. Also add a custom field (dropdown) with the key `crfp-rating`. That should work. | |
April 21, 2013 at 3:54 pm 2646 | |
Thank you so much! Amazing plugin, amazing support! | |
April 21, 2013 at 4:06 pm 2647 | |
If you like, I would be glad if you say something here 🙂 |