acf_form_comment::validate_pagepublicACF 3.1.8

This function will check if the current page is for a post/page edit form

Method of the class: acf_form_comment{}

No Hooks.

Returns

(boolean).

Usage

$acf_form_comment = new acf_form_comment();
$acf_form_comment->validate_page();

Changelog

Since 3.1.8 Introduced.

acf_form_comment::validate_page() code ACF 6.8.8

function validate_page() {

	// global
	global $pagenow;

	// validate page
	if ( $pagenow == 'comment.php' ) {
		return true;
	}

	// return
	return false;
}