acf_strip_protocol()ACF 5.5.4

acf_strip_protocol

This function will remove the proticol from a url Used to allow licenses to remain active if a site is switched to https

Хуков нет.

Возвращает

(Строку).

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

acf_strip_protocol( $url );
$url (обязательный)
-

Список изменений

С версии 5.5.4 Введена.

Код acf_strip_protocol() ACF 6.0.4

function acf_strip_protocol( $url ) {

	// strip the protical
	return str_replace( array( 'http://', 'https://' ), '', $url );

}