PHP Class The_SEO_Framework\Load

Extending upon parent classes.
Since: 2.7.1
Inheritance: extends Deprecated, implements the_seo_framework\Debug_Interface
Exibir arquivo Open project: sybrew/the-seo-framework

Public Properties

Property Type Description
$script_debug
$the_seo_framework_debug Cached debug/profile properties. Initialized on plugins_loaded priority 5.
$the_seo_framework_debug_hidden
$the_seo_framework_use_transients

Public Methods

Method Description
__construct ( ) Constructor, setup debug vars and then load parent constructor.
_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.
call_function ( array | string $callback, string $version = '', array | string $args = [] ) : mixed Wrapper for function calling through parameters. The golden nugget.
debug_init ( string $method, boolean $store, double $debug_key ) : void Debug init. Simplified way of debugging a function, only works in admin.
init_debug_vars ( ) Initializes public debug variables for the class to use.

Method Details

__construct() public method

Constructor, setup debug vars and then load parent constructor.
public __construct ( )

_deprecated_filter() public method

Mark a filter as deprecated and inform when it has been used.
Since: 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() public method

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.
Since: 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() public method

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.
Since: 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() public method

The current behavior is to trigger a user error if WP_DEBUG is true.
Since: 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.

call_function() public method

Wrapper for function calling through parameters. The golden nugget.
Since: 2.2.2
public call_function ( array | string $callback, string $version = '', array | string $args = [] ) : mixed
$callback array | string the method array or function string.
$version string the version of The SEO Framework the function is used.
$args array | string The arguments passed to the function.
return mixed $output The function called.

debug_init() public method

Debug init. Simplified way of debugging a function, only works in admin.
Since: 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.
return void early if debugging is disabled or when storing cache values.

init_debug_vars() public method

Initializes public debug variables for the class to use.
Since: 2.6.0
public init_debug_vars ( )

Property Details

$script_debug public_oe property

public $script_debug

$the_seo_framework_debug public_oe property

Cached debug/profile properties. Initialized on plugins_loaded priority 5.
Since: 2.2.9
public $the_seo_framework_debug

$the_seo_framework_debug_hidden public_oe property

public $the_seo_framework_debug_hidden

$the_seo_framework_use_transients public_oe property

public $the_seo_framework_use_transients