/**
 * Get redirect type.
 *
 * This function is used to get the redirect
 * status code selected by the user.
 * Registering filter - jj4t3_redirect_type
 * to alter redirect status code.
 *
 * @since  3.0.0
 * @access private
 *
 * @return int Redirect status code.
 */
function jj4t3_redirect_type()
{
    $type = (int) jj4t3_get_option('redirect_type');
    /**
     * Filter to modify currently set redirect type.
     *
     * Return only valid HTTP status codes.
     * If you are returning custom status codes other than the default
     * values, please make sure that you have added that to "jj4t3_redirect_statuses"
     * filter first. Otherwise it will be ignored.
     *
     * @since 2.0.0
     */
    $status = apply_filters('jj4t3_redirect_type', $type);
    // Verify that redirect status is allowed.
    if (in_array($status, array_keys(jj4t3_redirect_statuses()))) {
        return $status;
    }
    return 301;
}
					<td>
						<input type="text" size="40" name="jj4t3_custom_redirect" id="jj4t3_redirect_url" value="">
						<p class="description"><?php 
_e('Enter the url if you want to set custom redirect for above 404 path. Enter the full url including http://. Leave empty if you want to follow deafult settings.', JJ4T3_DOMAIN);
?>
</p>
						<input type="hidden" value="" id="jj4t3_redirect_404" name="jj4t3_redirect_404">
						<input type="hidden" value="<?php 
echo wp_create_nonce("jj4t3_redirect_nonce");
?>
" id="jj4t3_redirect_nonce" name="jj4t3_redirect_nonce">
						<input type="hidden" value="jj4t3_redirect_form" name="action">
					</td>
				</tr>
				<?php 
$statuses = jj4t3_redirect_statuses();
?>
				<?php 
if (!empty($statuses)) {
    ?>
					<tr>
						<th><?php 
    _e('Redirect type', JJ4T3_DOMAIN);
    ?>
</th>
						<td>
							<select name="jj4t3_custom_redirect_type" id="jj4t3_custom_redirect_type">
								<?php 
    foreach ($statuses as $status => $label) {
        ?>
									<option value='<?php