$value ) { if ( strpos( $key, $prefix ) === 0 || strpos( $key, str_replace( '.', '_', $prefix ) ) === 0 ) { $array[ substr( $key, strlen( $prefix ) ) ] = $value; } } return $array; } /** * Returns request array. * * @return array */ public static function get_request() { if ( ! isset( $_GET ) ) { $_GET = array(); } if ( ! isset( $_POST ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing $_POST = array(); } return array_merge( $_GET, $_POST ); // phpcs:ignore } }