acf_form_widget::get_render_id │ public static │ ACF 6.8.11

Returns the render ID widget fields are rendered for.

Widgets are rendered for their widget type rather than their number: the widgets screen renames the __i__ template, and the block widget editor renders forms with temporary numbers. Location rules only depend on the widget type, so a list from one widget accepted on another of the same type grants nothing.

Метод класса: acf_form_widget{}

Хуков нет.

Возвращает

string.

Использование

$result = acf_form_widget::get_render_id( $id_base );
$id_base(строка) (обязательный)
The widget type.

Список изменений

С версии 6.8.11 Введена.

Код acf_form_widget::get_render_id() ACF 6.8.11

public static function get_render_id( $id_base ) {
	return 'widget/' . $id_base;
}