src/classes/models/lib/upgrade.php
private function show_plugin_update_notices() {
		add_action( 'in_plugin_update_message-' . $this->app->define->plugin_base_name, function ( $data, $r ) {
			$new_version = $r->new_version;
			$url         = $this->app->utility->array_get( $data, 'PluginURI' );
			$notices     = $this->get_upgrade_notices( $new_version, $url );
			if ( ! empty( $notices ) ) {
				$this->get_view( 'admin/include/upgrade', [
					'notices' => $notices,
				], true );
			}
		}, 10, 2 );
	}
private function show_plugin_update_notices() {
		add_action( 'in_plugin_update_message-' . $this->app->define->plugin_base_name, function ( $data, $r ) {
			$new_version = $r->new_version;
			$url         = $this->app->utility->array_get( $data, 'PluginURI' );
			$notices     = $this->get_upgrade_notices( $new_version, $url );
			if ( ! empty( $notices ) ) {
				$this->get_view( 'admin/include/upgrade', [
					'notices' => $notices,
				], true );
			}
		}, 10, 2 );
	}
private function show_plugin_update_notices ( ) { add_action ( 'in_plugin_update_message-' . $ this -> app -> define -> plugin_base_name , function ( $ data , $ r ) { $ new_version = $ r -> new_version ; $ url = $ this -> app -> utility -> array_get ( $ data , 'PluginURI' ) ; $ notices = $ this -> get_upgrade_notices ( $ new_version , $ url ) ; if ( ! empty ( $ notices ) ) { $ this -> get_view ( 'admin/include/upgrade' , [ 'notices' => $ notices , ] , true ) ; } } , 10 , 2 ) ; }
show plugin upgrade notices
@since 2.4.1
@since 2.4.3 Fixed: get plugin upgrade notice from plugin directory
show plugin upgrade notices