acf_form_comment::validate_page
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() 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;
}