Skip to:
Content
Pages
Categories
Search
Top
Bottom

I am looking for a key to enter the value of “Reply Attributes”.


  • mariririn
    Participant

    @mariririn

    I am implementing comment function by AJAX. At the moment wp insert post is used. However, this function does not have a key for entering three values of “reply attribute”.

    In other words, I want to input three values “forum ID”, “topic ID” and “Reply To ID” with wp insert post.

    It key is like the next “???” .

    wp_insert_post(array(
        'post_title'   => (string)$_POST['replyTitle'],
        'post_content' => (string)$_POST['replyContent'],
        'post_status'  => 'publish',
        'post_author'  => get_current_user_id(),
        'post_type'    => 'reply'
        '???'          => (string)$_POST['forumID'],
        '???'          => (string)$_POST['topicID'],
        '???'          => (string)$_POST['replyToID'],
    ), true);

    How can I register these three values with wp insert post?

    I look forward to your response.

  • You must be logged in to reply to this topic.
Skip to toolbar