AP_Activate::update_disallow_op_to_answer()
Description #
Update disallow_op_to_answer option.
Source #
File: activate.php
public function update_disallow_op_to_answer() {
// Get the old disallow_op_to_answer option value.
$op_can_answer = ap_opt( 'disallow_op_to_answer' );
// Update the disallow_op_to_answer option value.
if ( false === $op_can_answer ) {
ap_opt( 'disallow_op_to_answer', true );
} else {
ap_opt( 'disallow_op_to_answer', false );
}
}
Expand full source code Collapse full source code View on GitHub: activate.php:451
Add your comment