Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

LLMS_Helper_Upgrader::get_changelog_for_api( LLMS_Add_On $addon )

Retrieve the changelog for an addon

Description Description

Attempts to retrieve changelog HTML from the make blog.

If the add-on’s changelog is empty or a static html file, returns an error with a link to the release notes category on the make blog.

Top ↑

Parameters Parameters


(LLMS_Add_On) (Required) Add-on object.

Top ↑

Return Return


Top ↑

Source Source

File: libraries/lifterlms-helper/includes/class-llms-helper-upgrader.php

	private function get_changelog_for_api( $addon ) {

		$src   = $addon->get( 'changelog' );
		$split = array_filter( explode( '/', $src ) );
		$tag   = end( $split );

		$logs = false;
		if ( ! empty( $tag ) && false === strpos( $tag, '.html' ) ) {
			$logs = $this->get_changelog_html( $tag, $src );

		// Translators: %s = URL for the changelog website.
		return $logs ? $logs : make_clickable( sprintf( __( 'There was an error retrieving the changelog.<br>Try visiting %s for recent changelogs.', 'lifterlms' ), '' ) );


Top ↑

Changelog Changelog

Version Description
3.2.0 Fix usage of incorrect textdomain.
3.1.0 Retrieve changelog from the make blog in favor of legacy static html changelogs.
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.