Yoast\WP\SEO\Editors\Domain\Seo
Social::__construct
The constructor.
Метод класса: Social{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$Social = new Social(); $Social->__construct( $social_title_template, $social_description_template, $social_image_template, $social_first_content_image );
- $social_title_template(строка) (обязательный)
- The Social title template.
- $social_description_template(строка) (обязательный)
- The Social description template.
- $social_image_template(строка) (обязательный)
- The Social image template.
- $social_first_content_image(строка) (обязательный)
- The first content image for the social preview.
Код Social::__construct() Social:: construct Yoast 27.7
public function __construct(
string $social_title_template,
string $social_description_template,
string $social_image_template,
string $social_first_content_image
) {
$this->social_title_template = $social_title_template;
$this->social_description_template = $social_description_template;
$this->social_image_template = $social_image_template;
$this->social_first_content_image = $social_first_content_image;
}