Browse: Home / Classes / LearnDash_Settings_Pages_Deprecated /


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 #


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

Default value: ''


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

Default value: ''


(array) (Optional) An array of replacement page args. 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 #

Version Description
3.6.0 Introduced.