LLMS_Helper_Upgrader::in_plugin_update_message( array $plugin_data, array $res )

Output additional information on plugins update screen when updates are available for an unlicensed addon


Parameters Parameters

$plugin_data

(array) (Required) Array of plugin data.

$res

(array) (Required) Response data.


Top ↑

Return Return

(void)


Top ↑

Source Source

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

			remove_filter( 'upgrader_package_options', array( $this, 'upgrader_package_options' ) );
			$result = $upgrader->install( $dl_info['data']['url'] );
			add_filter( 'upgrader_package_options', array( $this, 'upgrader_package_options' ) );
		} elseif ( 'update' === $action ) {
			$result = $upgrader->upgrade( $addon->get( 'update_file' ) );
		}

		if ( is_wp_error( $result ) ) {
			return $result;
		} elseif ( is_wp_error( $skin->result ) ) {
			return $skin->result;
		} elseif ( is_null( $result ) ) {
			return new WP_Error( 'filesystem', __( 'Unable to connect to the filesystem. Please confirm your credentials.', 'lifterlms' ) );
		}

		return true;
	}

	/**
	 * Output additional information on plugins update screen when updates are available for an unlicensed addon
	 *
	 * @since 3.0.0
	 * @since 3.0.2 Unknown.

Top ↑

Changelog Changelog

Changelog
Version Description
3.4.0 Use core textdomain.
3.0.2 Unknown.
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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