Yoast\WP\SEO\Abilities\Domain\Exceptions
Unavailable_Global_Setting_Target_Exception::__construct
Constructor of the exception.
Метод класса: Unavailable_Global_Setting_Target_Exception{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$Unavailable_Global_Setting_Target_Exception = new Unavailable_Global_Setting_Target_Exception(); $Unavailable_Global_Setting_Target_Exception->__construct( $error_code, $message );
- $error_code(строка) (обязательный)
- The machine-readable code of the error.
- $message(строка) (обязательный)
- Why the global settings cannot be changed, meant to be relayed to the user.
Код Unavailable_Global_Setting_Target_Exception::__construct() Unavailable Global Setting Target Exception:: construct Yoast 28.9
public function __construct( string $error_code, string $message ) {
parent::__construct( $message, 400 );
$this->error_code = $error_code;
}