Yoast\WP\SEO\AI_Consent\User_Interface
Ai_Consent_Integration::__construct
Устарела с версии 28.4. Больше не поддерживается и может быть удалена. Рекомендуется заменить эту функцию на аналог.
Constructs the class.
Метод класса: Ai_Consent_Integration{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$Ai_Consent_Integration = new Ai_Consent_Integration(); $Ai_Consent_Integration->__construct( $asset_manager, $user_helper, $short_link_helper, $endpoints_repository );
- $asset_manager(WPSEO_Admin_Asset_Manager) (обязательный)
- The admin asset manager.
- $user_helper(User_Helper) (обязательный)
- The user helper.
- $short_link_helper(Short_Link_Helper) (обязательный)
- The short link helper.
- $endpoints_repository(Consent_Endpoints_Repository) (обязательный)
- The endpoints repository.
Список изменений
| Устарела с | 28.4 |
Код Ai_Consent_Integration::__construct() Ai Consent Integration:: construct Yoast 28.9
public function __construct(
WPSEO_Admin_Asset_Manager $asset_manager,
User_Helper $user_helper,
Short_Link_Helper $short_link_helper,
Consent_Endpoints_Repository $endpoints_repository
) {
\_deprecated_function( __METHOD__, 'Yoast SEO 28.4' );
$this->asset_manager = $asset_manager;
$this->user_helper = $user_helper;
$this->short_link_helper = $short_link_helper;
$this->endpoints_repository = $endpoints_repository;
}