Automattic\WooCommerce\Blocks\Utils
BlocksSharedState::load_placeholder_image
Load placeholder image into interactivity config.
Метод класса: BlocksSharedState{}
Хуков нет.
Возвращает
void. Ничего (null).
Использование
$result = BlocksSharedState::load_placeholder_image( $consent_statement ): void;
- $consent_statement(строка) (обязательный)
- The consent statement string.
Код BlocksSharedState::load_placeholder_image() BlocksSharedState::load placeholder image WC 11.2.2
public static function load_placeholder_image( string $consent_statement ): void {
self::check_consent( $consent_statement );
wp_interactivity_config(
self::$settings_namespace,
array( 'placeholderImgSrc' => wc_placeholder_img_src() )
);
}