acf_form_front::get_submitted_render_id
Returns the render ID submitted with the form, or an empty string.
Метод класса: acf_form_front{}
Хуков нет.
Возвращает
string.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_submitted_render_id(): string;
Список изменений
| С версии 6.8.11 | Введена. |
Код acf_form_front::get_submitted_render_id() acf form front::get submitted render id ACF 6.8.11
protected function get_submitted_render_id(): string {
// phpcs:disable WordPress.Security.NonceVerification.Missing -- Verified in check_submit_form().
return isset( $_POST['_acf_render_id'] ) && is_scalar( $_POST['_acf_render_id'] ) ? sanitize_text_field( wp_unslash( $_POST['_acf_render_id'] ) ) : '';
// phpcs:enable WordPress.Security.NonceVerification.Missing
}