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.
Return Return
(void)
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;">'; } }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.4.0 | Use core textdomain. |
3.0.2 | Unknown. |
3.0.0 | Introduced. |