Noptin_Page::get_request_action()
Retrieves the request action
Return Return
(string)
Source Source
File: includes/class-noptin-page.php
public function get_request_action() { $matched_var = get_query_var( 'noptin_newsletter' ); if ( ! empty( $matched_var ) ) { return sanitize_title_with_dashes( trim( urldecode( $matched_var ) ) ); } // For backwards compatibility. if ( empty( $_REQUEST['noptin_action'] ) && empty( $_REQUEST['na'] ) ) { return ''; } // Prepare the action to execute... $action = empty( $_REQUEST['noptin_action'] ) ? trim( $_REQUEST['na'] ) : trim( $_REQUEST['noptin_action'] ); return sanitize_title_with_dashes( urldecode( $action ) ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
1.2.2 | Introduced. |