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


(array) (Required) Array of plugin data.


(array) (Required) Response data.

Top ↑

Return Return


Top ↑

Source Source

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

	public function in_plugin_update_message( $plugin_data, $res ) {

		if ( empty( $plugin_data['package'] ) ) {

			echo '<style>p.llms-msg:before { content: ""; }</style>';

			echo '<p class="llms-msg"><strong>';
			_e( 'Your LifterLMS add-on is currently unlicensed and cannot be updated!', 'lifterlms' );
			echo '</strong></p>';

			echo '<p class="llms-msg">';
			// Translators: %1$s = Opening anchor tag; %2$s = Closing anchor tag.
			printf( __( 'If you already have a license, you can activate it on the %1$sadd-ons management screen%2$s.', 'lifterlms' ), '<a href="' . esc_url( admin_url( 'admin.php?page=llms-add-ons' ) ) . '">', '</a>' );
			echo '</p>';

			echo '<p class="llms-msg">';
			// Translators: %s = URI to licensing FAQ.
			printf( __( 'Learn more about LifterLMS add-on licensing at %s.', 'lifterlms' ), make_clickable( 'https://lifterlms.com/docs/lifterlms-helper/' ) );
			echo '</p><p style="display:none;">';



Top ↑

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.