protected function _set_notice_error_about_github_api() {
		$api_data = $this->_get_transient_api_data();
		if ( ! is_wp_error( $api_data ) ) {
			return;
		}

		add_action(
			'admin_notices',
			function() use ( $api_data ) {
				?>
				<div class="notice notice-error">
					<p>
						<?php echo esc_html( $api_data->get_error_message() ); ?>
					</p>
				</div>
				<?php
			}
		);
	}
protected function _set_notice_error_about_github_api() {
		$api_data = $this->_get_transient_api_data();
		if ( ! is_wp_error( $api_data ) ) {
			return;
		}

		add_action(
			'admin_notices',
			function() use ( $api_data ) {
				?>
				<div class="notice notice-error">
					<p>
						<?php echo esc_html( $api_data->get_error_message() ); ?>
					</p>
				</div>
				<?php
			}
		);
	}
protected function _set_notice_error_about_github_api ( ) { $ api_data = $ this -> _get_transient_api_data ( ) ; if ( ! is_wp_error ( $ api_data ) ) { return ; } add_action ( 'admin_notices' , function ( ) use ( $ api_data ) { ?>
				<div class="notice notice-error">
					<p>
						<?php echo esc_html ( $ api_data -> get_error_message ( ) ) ; ?>
					</p>
				</div>
				<?php } ) ; }
Set notice error about GitHub API using admin_notice hook

@return void
Set notice error about GitHub API using admin_notice hook