Answers for "php check if page post"

PHP
5

check if post request php

Better use $_SERVER['REQUEST_METHOD']:

if ($_SERVER['REQUEST_METHOD'] === 'POST') {
    // …
}
Posted by: Guest on February-09-2021
0

check if post page wp

if (is_single()) {
	// enjoy
}
Posted by: Guest on October-07-2021

Browse Popular Code Answers by Language