WC_Download_Handler::get_content_disposition()
- Get selected content disposition
- Defaults to attachment if woocommerce_downloads_deliver_inline setting is not selected.
- @return string Content disposition value.
Метод класса: WC_Download_Handler{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$result = WC_Download_Handler::get_content_disposition() : string;
Код WC_Download_Handler::get_content_disposition() WC Download Handler::get content disposition WC 8.7.0
private static function get_content_disposition() : string { $disposition = 'attachment'; if ( 'yes' === get_option( 'woocommerce_downloads_deliver_inline' ) ) { $disposition = 'inline'; } return $disposition; }