Browse: Home / Classes / LearnDash_Settings_Pages_Deprecated /

LearnDash_Settings_Pages_Deprecated::deprecated_settings_page

LearnDash_Settings_Pages_Deprecated::deprecated_settings_page( string $page_slug = '',  string $version = '',  array $replacement_args = array() )

Mark a settings page url as deprecated and inform when it has been used.


Description #

This function works similar to standard WordPress functions like _deprecated_function. The current behavior is to trigger a user error if WP_DEBUG is true.


Parameters #

$page_slug

(string) (Optional) The foriginal page slug as in 'page=<page_slug>'.

Default value: ''

$version

(string) (Optional) The version of LearnDash that deprecated the function.

Default value: ''

$replacement_args

(array) (Optional) An array of replacement page arge. Will be passed to add_query_arg() to generate redirect URL.

Default value: array()


Source #

File: includes/settings/class-ld-settings-pages-deprecated.php


Changelog #

Changelog
Version Description
3.6.0 Introduced.