Tags::after_new_question( integer $post_id, object $post )
Description #
Things to do after creating a question.
Parameters #
- $post_idinteger (Required) Post ID.
- $postobject (Required) Post object.
Source #
File: addons/tags/tags.php
public function after_new_question( $post_id, $post ) { $values = anspress()->get_form( 'question' )->get_values(); if ( isset( $values['tags'], $values['tags']['value'] ) ) { wp_set_object_terms( $post_id, $values['tags']['value'], 'question_tag' ); } }
Expand full source code Collapse full source code View on GitHub: addons/tags/tags.php:436
Add your comment