LLMS_Helper_Upgrader::upgrader_package_options( array $options )
Get a real package download url for a LifterLMS add-on
Description Description
This is called immediately prior to package upgrades.
Parameters Parameters
- $options
-
(array) (Required) Package option data.
Return Return
(array)
Source Source
File: libraries/lifterlms-helper/includes/class-llms-helper-upgrader.php
$ret .= '<h4>' . sprintf( __( 'Version %1$s - %2$s', 'lifterlms' ), sanitize_text_field( wp_strip_all_tags( trim( $ver ) ) ), $date ) . '</h4>';
$ret .= strip_tags( $log['content']['rendered'], '<ul><li><p><a><b><strong><em><i>' );
}
}
$ret .= '<br>';
// Translators: %s = URL to the full changelog.
$ret .= '<p>' . make_clickable( sprintf( __( 'View the full changelog at %s.', 'lifterlms' ), $url ) ) . '</p>';
}
return $ret;
}
/**
* Get a real package download url for a LifterLMS add-on
*
* This is called immediately prior to package upgrades.
*
* @since 3.0.0
* @since 3.0.2 Unknown.
* @since 3.2.1 Correctly process addons which do not require a license (e.g. free products).
*
* @param array $options Package option data.
* @return array
*/
public function upgrader_package_options( $options ) {
if ( ! isset( $options['hook_extra'] ) ) {
return $options;
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 3.2.1 | Correctly process addons which do not require a license (e.g. free products). |
| 3.0.2 | Unknown. |
| 3.0.0 | Introduced. |