Automator_Review::save_review_settings_action()

Callback for saving user selection for review by querystring.


Parameters Parameters

$request

(object) (Required)


Top ↑

Return Return

(object)


Source Source

File: src/core/admin/class-automator-review.php

	public function save_review_settings_action() {
		// check if its a valid request.
		if ( isset( $_GET['action'] ) && ( 'uo-maybe-later' === $_GET['action'] || 'uo-hide-forever' === $_GET['action'] ) ) {
			if ( function_exists( 'is_admin' ) && is_admin() ) {
				$_action = str_replace( 'uo-', '', $_GET['action'] );

				update_option( '_uncanny_automator_review_reminder', $_action );
				update_option( '_uncanny_automator_review_reminder_date', current_time( 'timestamp' ) );
				$back_url = remove_query_arg( 'action' );
				wp_safe_redirect( $back_url );
				die;
			}
		}
	}

Top ↑

Changelog Changelog

Changelog
Version Description
2.11 Introduced.