PHP Интерфейс The_SEO_Framework\Debug_Interface

Sets public debug functions.
С версии: 2.7.1
Показать файл Открыть проект

Открытые методы

Метод Описание
_deprecated_filter ( string $filter, string $version, string $replacement = null ) Mark a filter as deprecated and inform when it has been used.
_deprecated_function ( string $function, string $version, string $replacement = null ) Mark a function as deprecated and inform when it has been used.
_doing_it_wrong ( string $function, string $message, string $version ) Mark a function as deprecated and inform when it has been used.
_inaccessible_p_or_m ( string $p_or_m, string $message = '' ) Mark a property or method inaccessible when it has been used.
debug_init ( string $method, boolean $store, double $debug_key ) : void Debug init. Simplified way of debugging a function, only works in admin.

Описание методов

_deprecated_filter() публичный Метод

Mark a filter as deprecated and inform when it has been used.
С версии: 2.7.1
public _deprecated_filter ( string $filter, string $version, string $replacement = null )
$filter string The function that was called.
$version string The version of WordPress that deprecated the function.
$replacement string Optional. The function that should have been called. Default null.

_deprecated_function() публичный Метод

Taken from WordPress core, but added extra parameters and linguistic alterations. The current behavior is to trigger a user error if WP_DEBUG is true.
С версии: 2.6.0
public _deprecated_function ( string $function, string $version, string $replacement = null )
$function string The function that was called.
$version string The version of WordPress that deprecated the function.
$replacement string Optional. The function that should have been called. Default null.

_doing_it_wrong() публичный Метод

Taken from WordPress core, but added extra parameters and linguistic alterations. The current behavior is to trigger a user error if WP_DEBUG is true.
С версии: 2.6.0
public _doing_it_wrong ( string $function, string $message, string $version )
$function string The function that was called.
$message string A message explaining what has been done incorrectly.
$version string The version of WordPress where the message was added.

_inaccessible_p_or_m() публичный Метод

The current behavior is to trigger a user error if WP_DEBUG is true.
С версии: 2.7.0
public _inaccessible_p_or_m ( string $p_or_m, string $message = '' )
$p_or_m string The Property or Method.
$message string A message explaining what has been done incorrectly.

debug_init() публичный Метод

Debug init. Simplified way of debugging a function, only works in admin.
С версии: 2.6.0
public debug_init ( string $method, boolean $store, double $debug_key ) : void
$method string The function name.
$store boolean Whether to store the output in cache for next run to pick up on.
$debug_key double Use $debug_key as variable, it's reserved.
Результат void early if debugging is disabled or when storing cache values.