bbp_is_post_request()

Return true|false if this is a POST request

Description

Return

(bool)

Source

File: bp-forums/core/functions.php

function bbp_is_post_request() {
	return (bool) ( 'POST' === strtoupper( $_SERVER['REQUEST_METHOD'] ) );
}

Changelog

Changelog
Version Description
bbPress (r4790) Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.