acf_form_comment::validate_page()
validate_page
This function will check if the current page is for a post/page edit form
Метод класса: acf_form_comment{}
Хуков нет.
Возвращает
(true|false)
.
Использование
$acf_form_comment = new acf_form_comment(); $acf_form_comment->validate_page();
Список изменений
С версии 3.1.8 | Введена. |
Код acf_form_comment::validate_page() acf form comment::validate page ACF 6.0.4
function validate_page() { // global global $pagenow; // validate page if ( $pagenow == 'comment.php' ) { return true; } // return return false; }