Yoast\WP\SEO\Conditionals

Attachment_Redirections_Enabled_Conditional::is_met()publicYoast 1.0

Returns whether the 'Redirect attachment URLs to the attachment itself' setting has been enabled.

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

Хуков нет.

Возвращает

true|false. true when the 'Redirect attachment URLs to the attachment itself' setting has been enabled.

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

$Attachment_Redirections_Enabled_Conditional = new Attachment_Redirections_Enabled_Conditional();
$Attachment_Redirections_Enabled_Conditional->is_met();

Код Attachment_Redirections_Enabled_Conditional::is_met() Yoast 22.8

public function is_met() {
	return $this->options->get( 'disable-attachment' );
}