LLMS_Helper_Upgrader::plugins_api( bool $response, string $action = '', obj $args = null )
Filter API calls to get plugin information and replace it with data from LifterLMS.com API for our addons
Parameters Parameters
- $response
-
(bool) (Required) False (denotes API call should be made to wp.org for plugin info).
- $action
-
(string) (Optional) Name of the API action.
Default value: ''
- $args
-
(obj) (Optional) Additional API call args.
Default value: null
Return Return
(false|obj)
Source Source
File: libraries/lifterlms-helper/includes/class-llms-helper-upgrader.php
echo '<p class="llms-msg"><strong>';
esc_html_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( esc_html__( '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( esc_html__( 'Learn more about LifterLMS add-on licensing at %s.', 'lifterlms' ), wp_kses_post( make_clickable( 'https://lifterlms.com/docs/lifterlms-helper/' ) ) );
echo '</p><p style="display:none;">';
}
}
/**
* Filter API calls to get plugin information and replace it with data from LifterLMS.com API for our addons
*
* @since 3.0.0
*
* @param bool $response False (denotes API call should be made to wp.org for plugin info).
* @param string $action Name of the API action.
* @param obj $args Additional API call args.
* @return false|obj
*/
public function plugins_api( $response, $action = '', $args = null ) {
if ( 'plugin_information' !== $action ) {
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |