WPCF7_FormTag::get_id_option
Retrieves the id option value from the form-tag.
Метод класса: WPCF7_FormTag{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$WPCF7_FormTag = new WPCF7_FormTag(); $WPCF7_FormTag->get_id_option();
Код WPCF7_FormTag::get_id_option() WPCF7 FormTag::get id option CF7 6.1.4
public function get_id_option() {
static $used = array();
$option = $this->get_option( 'id', 'id', true );
if (
! $option or
str_starts_with( $option, 'wpcf7' ) or
in_array( $option, $used, true )
) {
return false;
}
$used[] = $option;
return $option;
}