llms_deprecated_function( string $function, string $version, string $replacement = null )
Mark a function as deprecated and inform when it is used.
Description Description
This function uses WP core’s _deprecated_function(), logging to the LifterLMS log file located at wp-content/updloads/llms-logs/llms-{$hash}.log instead of wp-content/debug.log.
Parameters Parameters
- $function
-
(string) (Required) Name of the deprecated function.
- $version
-
(string) (Required) LifterLMS version that deprecated the function.
- $replacement
-
(string) (Optional) Replacement function. Default is
null.Default value: null
Return Return
(void)
Source Source
File: includes/llms.functions.core.php
*/
function llms_deprecated_function( $function, $version, $replacement = null ) {
_deprecated_function( $function, $version, $replacement );
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 4.4.0 | Uses WP _deprecated_function() instead of duplicating its logic. |
| 3.6.0 | Unknown. |
| 2.6.0 | Introduced. |