Amp_Admin_Notices::__construct( string $screen_id, bool $amp_is_enabled = false, bool $is_ssl = null )
Summary
Constructor
Parameters
- $screen_id
-
(string) (Required) ID of string on which to display the notice.
- $amp_is_enabled
-
(bool) (Optional) Whether the AMP for WordPress plugin is active.
Default value: false
- $is_ssl
-
(bool) (Optional) Whether the site uses SSL.
Default value: null
Source
File: src/BigCommerce/Amp/Amp_Admin_Notices.php
public function __construct( $screen_id, $amp_is_enabled = false, $is_ssl = null ) { $this->screen_id = $screen_id; $this->amp_is_enabled = $amp_is_enabled; $this->is_ssl = is_bool( $is_ssl ) ? $is_ssl : is_ssl(); }