Warning: Array to string conversion in /home/customer/www/docs.automatorplugin.com/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 825
Warning: foreach() argument must be of type array|object, string given in /home/customer/www/docs.automatorplugin.com/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 830
Automator_Review::save_review_settings_action()
Callback for saving user selection for review by querystring.
Contents
Warning: Array to string conversion in /home/customer/www/docs.automatorplugin.com/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 825
Warning: foreach() argument must be of type array|object, string given in /home/customer/www/docs.automatorplugin.com/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 830
Parameters Parameters
- $request
(Required)
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; } } }
Expand full source code Collapse full source code View on Github
Changelog Changelog
Version | Description |
---|---|
2.11 | Introduced. |