AnsPress_Tag::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/free/tag.php
public static function after_new_question( $post_id, $post ) { $values = anspress()->get_form( 'question' )->get_values(); if ( isset( $values['tags'] ) ) { wp_set_object_terms( $post_id, $values['tags']['value'], 'question_tag' ); } }
Expand full source code Collapse full source code View on GitHub: addons/free/tag.php:387
Add your comment