WPSEO_Post_Metabox_Formatter::__construct()publicYoast 1.0

Constructor.

Метод класса: WPSEO_Post_Metabox_Formatter{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$WPSEO_Post_Metabox_Formatter = new WPSEO_Post_Metabox_Formatter();
$WPSEO_Post_Metabox_Formatter->__construct( $post, $options, $structure );
$post(WP_Post|массив) (обязательный)
Post object.
$options(массив) (обязательный)
Title options to use.
$structure(строка) (обязательный)
The permalink to follow.

Код WPSEO_Post_Metabox_Formatter::__construct() Yoast 22.4

public function __construct( $post, array $options, $structure ) {
	$this->post      = $post;
	$this->permalink = $structure;

	$this->use_social_templates = $this->use_social_templates();
}