WPCF7_ConfigValidator::get_doc_link()public staticCF7 1.0

Returns a URL linking to the documentation page for the error type.

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

Хуков нет.

Возвращает

null. Ничего (null).

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

$result = WPCF7_ConfigValidator::get_doc_link( $child_page );
$child_page **
-
По умолчанию: ''

Код WPCF7_ConfigValidator::get_doc_link() CF7 5.9.3

public static function get_doc_link( $child_page = '' ) {
	$url = __( 'https://contactform7.com/configuration-errors/',
		'contact-form-7'
	);

	if ( '' !== $child_page ) {
		$child_page = strtr( $child_page, '_', '-' );

		$url = sprintf( '%s/%s', untrailingslashit( $url ), $child_page );
	}

	return esc_url( $url );
}