ACF_Local_Meta::pre_load_post_id()publicACF 5.8.0

pre_load_post_id

Injects the local post_id.

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

Хуков нет.

Возвращает

Разное.

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

$ACF_Local_Meta = new ACF_Local_Meta();
$ACF_Local_Meta->pre_load_post_id( $null, $post_id );
$null(null) (обязательный)
An empty parameter. Return a non null value to short-circuit the function.
$post_id(разное) (обязательный)
The post_id for this data.

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

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

Код ACF_Local_Meta::pre_load_post_id() ACF 6.0.4

function pre_load_post_id( $null, $post_id ) {
	if ( ! $post_id && $this->post_id ) {
		return $this->post_id;
	}
	return $null;
}