Yoast\WP\SEO\Conditionals
Attachment_Redirections_Enabled_Conditional::is_met
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() Attachment Redirections Enabled Conditional::is met Yoast 26.5
public function is_met() {
return $this->options->get( 'disable-attachment' );
}