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.


Top ↑

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


Top ↑

Return Return

(void)


Top ↑

Source Source

File: includes/llms.functions.core.php

 */
function llms_deprecated_function( $function, $version, $replacement = null ) {

	_deprecated_function( $function, $version, $replacement );



Top ↑

Changelog Changelog

Changelog
Version Description
4.4.0 Uses WP _deprecated_function() instead of duplicating its logic.
3.6.0 Unknown.
2.6.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.