PHP Class Mlp_Redirect_Filter

Exibir arquivo Open project: inpsyde/multilingual-press

Public Methods

Method Description
__construct ( string $meta_key ) Constructor.
filter_redirect ( boolean $redirect ) : boolean Stops the redirect if the user has turned it off.

Method Details

__construct() public method

Constructor.
public __construct ( string $meta_key )
$meta_key string Meta key of the redirect user setting.

filter_redirect() public method

Stops the redirect if the user has turned it off.
public filter_redirect ( boolean $redirect ) : boolean
$redirect boolean Redirect the current request?
return boolean