AP_Activate::update_disallow_op_to_answer()

Description #

Update disallow_op_to_answer option.

Changelog #

VersionDescription
4.4.0Introduced.

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 );
		}
	}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment