ap_toggle_close_question( integer $post_id )
Description #
Toggle closed
Parameters #
- $post_idinteger (Required) Question ID.
Source #
File: includes/qameta.php
function ap_toggle_close_question( $post_id ) { $qameta = ap_get_qameta( $post_id ); $toggle = $qameta->closed ? 0 : 1; ap_insert_qameta( $post_id, array( 'closed' => $toggle ) ); return $toggle; }
Expand full source code Collapse full source code View on GitHub: includes/qameta.php:595
Add your comment