public function auto_update_theme( $update, $item ) {
		if ( ! apply_filters( 'Boldgrid\Library\Update\isEnalbed', false ) ) {
			return $update;
		}

		// Old settings.
		$themeAutoupdate = \Boldgrid\Library\Util\Option::get( 'theme_autoupdate' );

		// Update if global setting is on, individual settings is on, or not set and default is on.
		if ( ! empty( $themeAutoupdate ) ||
			! empty( $this->settings['themes'][ $item->theme ] ) ||
			( ! isset( $this->settings['themes'][ $item->theme ] ) &&
			! empty( $this->settings['themes']['default'] ) ) ) {
				$update = true;
		}

		return $update;
	}
public function auto_update_theme( $update, $item ) {
		if ( ! apply_filters( 'Boldgrid\Library\Update\isEnalbed', false ) ) {
			return $update;
		}

		// Old settings.
		$themeAutoupdate = \Boldgrid\Library\Util\Option::get( 'theme_autoupdate' );

		// Update if global setting is on, individual settings is on, or not set and default is on.
		if ( ! empty( $themeAutoupdate ) ||
			! empty( $this->settings['themes'][ $item->theme ] ) ||
			( ! isset( $this->settings['themes'][ $item->theme ] ) &&
			! empty( $this->settings['themes']['default'] ) ) ) {
				$update = true;
		}

		return $update;
	}
public function auto_update_theme ( $ update , $ item ) { if ( ! apply_filters ( 'Boldgrid\Library\Update\isEnalbed' , false ) ) { return $ update ; } // Old settings. $ themeAutoupdate = \ Boldgrid \ Library \ Util \ Option :: get ( 'theme_autoupdate' ) ; // Update if global setting is on, individual settings is on, or not set and default is on. if ( ! empty ( $ themeAutoupdate ) || ! empty ( $ this -> settings [ 'themes' ] [ $ item -> theme ] ) || ( ! isset ( $ this -> settings [ 'themes' ] [ $ item -> theme ] ) && ! empty ( $ this -> settings [ 'themes' ] [ 'default' ] ) ) ) { $ update = true ; } return $ update ; }
Auto update theme.

@since 2.3.0

@hook: auto_update_theme

@param  bool   $update Update API response.
@param  object $item   Item being updated.
@return bool
Auto update theme .