WPSEO_Frontend::__call()publicYoast 1.0

Catches call to methods that don't exist and might deprecated.

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

Хуков нет.

Возвращает

Разное.

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

$WPSEO_Frontend = new WPSEO_Frontend();
$WPSEO_Frontend->__call( $method, $arguments );
$method(строка) (обязательный)
The called method.
$arguments(массив) (обязательный)
The given arguments.

Код WPSEO_Frontend::__call() Yoast 24.4

public function __call( $method, $arguments ) {
	_deprecated_function( $method, 'Yoast SEO 14.0' );

	$title_methods = [
		'title',
		'fix_woo_title',
		'get_content_title',
		'get_seo_title',
		'get_taxonomy_title',
		'get_author_title',
		'get_title_from_options',
		'get_default_title',
		'force_wp_title',
	];
	if ( in_array( $method, $title_methods, true ) ) {
		return $this->get_title();
	}

	return null;
}