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

Yoast_License_Manager::get_unsuccessful_activation_message() protected Yoast 1.0

Determine what message should be shown for an unsuccessful activation

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

Хуков нет.




// protected - в коде основоного (родительского) или дочернего класса
$result = $this->get_unsuccessful_activation_message( $result );
$result(объект) (обязательный)
Result of a request.

Код Yoast_License_Manager::get_unsuccessful_activation_message() Yoast 15.1.1

protected function get_unsuccessful_activation_message( $result ) {
	// Default message if we cannot detect anything more specific.
	$message = __( 'Failed to activate your license, your license key seems to be invalid.', $this->product->get_text_domain() );

	if ( ! empty( $result->error ) ) {
		switch ( $result->error ) {
			// Show notice if user is at their activation limit.
			case 'no_activations_left':
				$message = sprintf( __( 'You\'ve reached your activation limit. You must <a href="%s">upgrade your license</a> to use it on this site.', $this->product->get_text_domain() ), $this->product->get_extension_url( 'license-at-limit-notice' ) );

			// Show notice if the license is expired.
			case 'expired':
				$message = sprintf( __( 'Your license has expired. You must <a href="%s">extend your license</a> in order to use it again.', $this->product->get_text_domain() ), $this->product->get_extension_url( 'license-expired-notice' ) );

	return $message;