public function set_update_transients() {
		if ( empty( self::$options_remote ) ) {
			return;
		}
		$plugin = Singleton::get_instance( 'Plugin', $this );
		$theme  = Singleton::get_instance( 'Theme', $this );

		add_filter( 'github_updater_add_admin_pages', [ $this, 'extra_admin_pages' ] );
		add_filter( 'site_transient_update_plugins', [ $plugin, 'update_site_transient' ], 10, 1 );
		add_filter( 'site_transient_update_themes', [ $theme, 'update_site_transient' ], 10, 1 );

		$plugin->get_meta_plugins();
		$theme->get_meta_themes();

		$current_plugins = get_site_transient( 'update_plugins' );
		$current_themes  = get_site_transient( 'update_themes' );
		set_site_transient( 'update_plugins', $current_plugins );
		set_site_transient( 'update_themes', $current_themes );

		remove_filter( 'github_updater_add_admin_pages', [ $this, 'extra_admin_pages' ] );
	}
public function set_update_transients() {
		if ( empty( self::$options_remote ) ) {
			return;
		}
		$plugin = Singleton::get_instance( 'Plugin', $this );
		$theme  = Singleton::get_instance( 'Theme', $this );

		add_filter( 'github_updater_add_admin_pages', [ $this, 'extra_admin_pages' ] );
		add_filter( 'site_transient_update_plugins', [ $plugin, 'update_site_transient' ], 10, 1 );
		add_filter( 'site_transient_update_themes', [ $theme, 'update_site_transient' ], 10, 1 );

		$plugin->get_meta_plugins();
		$theme->get_meta_themes();

		$current_plugins = get_site_transient( 'update_plugins' );
		$current_themes  = get_site_transient( 'update_themes' );
		set_site_transient( 'update_plugins', $current_plugins );
		set_site_transient( 'update_themes', $current_themes );

		remove_filter( 'github_updater_add_admin_pages', [ $this, 'extra_admin_pages' ] );
	}
public function set_update_transients ( ) { if ( empty ( self :: $ options_remote ) ) { return ; } $ plugin = Singleton :: get_instance ( 'Plugin' , $ this ) ; $ theme = Singleton :: get_instance ( 'Theme' , $ this ) ; add_filter ( 'github_updater_add_admin_pages' , [ $ this , 'extra_admin_pages' ] ) ; add_filter ( 'site_transient_update_plugins' , [ $ plugin , 'update_site_transient' ] , 10 , 1 ) ; add_filter ( 'site_transient_update_themes' , [ $ theme , 'update_site_transient' ] , 10 , 1 ) ; $ plugin -> get_meta_plugins ( ) ; $ theme -> get_meta_themes ( ) ; $ current_plugins = get_site_transient ( 'update_plugins' ) ; $ current_themes = get_site_transient ( 'update_themes' ) ; set_site_transient ( 'update_plugins' , $ current_plugins ) ; set_site_transient ( 'update_themes' , $ current_themes ) ; remove_filter ( 'github_updater_add_admin_pages' , [ $ this , 'extra_admin_pages' ] ) ; }
Set site transients for 'update_plugins' and 'update_themes' for remote management.

@return void
Set site transients for update_plugins and update_themes for remote management .