AP_Update_Helper::change_closed_status( object $_post )
Description #
Change closed post status to publish.
Parameters #
- $_postobject (Required) Post object.
Source #
File: admin/update.php
168 169 170 171 172 173 174 175 | public function change_closed_status( $_post ) { if ( 'closed' === $_post ->post_status ) { global $wpdb ; $wpdb ->update( $wpdb ->posts, [ 'post_status' => 'publish' ], [ 'ID' => $_post ->ID ], [ '%s' ] ); ap_toggle_close_question( $_post ->ID ); } } |
Expand full source code Collapse full source code View on GitHub: admin/update.php:168
Add your comment