WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

Yoast\WP\SEO\Actions\Importing

Aioseo_Posttype_Defaults_Settings_Importing_Action::import_redirect_attachment() public Yoast 1.0

Transforms the redirect_attachment setting.

{} Это метод класса: Aioseo_Posttype_Defaults_Settings_Importing_Action{}

Хуков нет.

Возвращает

Строку. The transformed redirect_attachment setting.

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

$Aioseo_Posttype_Defaults_Settings_Importing_Action = new Aioseo_Posttype_Defaults_Settings_Importing_Action();
$Aioseo_Posttype_Defaults_Settings_Importing_Action->import_redirect_attachment( $redirect_attachment );
$redirect_attachment(строка) (обязательный)
The redirect_attachment setting.

Код Aioseo_Posttype_Defaults_Settings_Importing_Action::import_redirect_attachment() Yoast 17.9

public function import_redirect_attachment( $redirect_attachment ) {
	switch ( $redirect_attachment ) {
		case 'disabled':
			return false;

		case 'attachment':
		case 'attachment_parent':
		default:
			return true;
	}
}