In that case it prevents Wordpress to do any other processing and sends the user to the page defined in the plugin options.','fzf'); ?>
".__('Note: If this option is left empty the plugin will redirect user to homepage.','fzf')."
";
}
function fourzerofour_render_options(){
?>
is_404){
$options = get_option('fourzerofour_options_group');
if(!empty($options['fourzerofour_url'])){
$url_redirect = $options['fourzerofour_url'];
}else{
//By default redirect to home
$url_redirect = site_url();
}
header('Location: '.$url_redirect);
die;
}
}
function add_settings_link($links, $file) {
static $this_plugin;
if (!$this_plugin) $this_plugin = plugin_basename(__FILE__);
if ($file == $this_plugin){
$settings_link = 'Settings';
array_unshift($links, $settings_link);
}
return $links;
}
?>