# custom-404-pro/trunk/admin/views/settings.php

Custom 404 Pro, version trunk. 39 lines.

- Page: https://pluginprobe.com/plugins/custom-404-pro/trunk/code/admin/views/settings.php
- Raw: https://pluginprobe.com/plugins/custom-404-pro/trunk/raw/admin/views/settings.php
- Modified: 2026-04-25T16:18:28+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/custom-404-pro/trunk/code/admin/views/settings.php#L10-L20`.

```php
<?php
/**
 * Settings page view.
 *
 * @package Custom_404_Pro
 */

$c4p_tab    = isset( $_GET['tab'] ) ? sanitize_text_field( wp_unslash( $_GET['tab'] ) ) : ''; // phpcs:ignore WordPress.Security.NonceVerification.Recommended
$active_tab = empty( $c4p_tab ) ? 'global-redirect' : $c4p_tab;

?>

<div class="wrap">
	<h2><?php esc_html_e( 'Settings', 'custom-404-pro' ); ?></h2>
	<h2 class="nav-tab-wrapper">
		<a href="?page=c4p-settings&tab=global-redirect" class="nav-tab <?php echo ( 'global-redirect' === $active_tab || '' === $active_tab ) ? 'nav-tab-active' : ''; ?>">
			<?php esc_html_e( 'Redirect', 'custom-404-pro' ); ?>
		</a>
		<a href="?page=c4p-settings&tab=general" class="nav-tab <?php echo 'general' === $active_tab ? 'nav-tab-active' : ''; ?>">
			<?php esc_html_e( 'General', 'custom-404-pro' ); ?>
		</a>
	</h2>
</div>

<?php

switch ( $active_tab ) {
	case '':
		include 'settings-global-redirect.php';
		break;
	case 'global-redirect':
		include 'settings-global-redirect.php';
		break;
	case 'general':
		include 'settings-general.php';
		break;
}
?>

```
