|
Server : Apache System : Linux s1230 5.15.0-139-generic #149~20.04.1 SMP Tue Jul 14 11:21:49 UTC 2026 x86_64 User : p141464 ( 418825) PHP Version : 7.4.33.12 Disable Function : NONE Directory : /html/wordpress-old/wp-content/plugins/redirection/actions/ |
Upload File : |
<?php
class Url_Action extends Red_Action {
function can_change_code() {
return true;
}
function action_codes() {
return array(
301 => get_status_header_desc( 301 ),
302 => get_status_header_desc( 302 ),
307 => get_status_header_desc( 307 )
);
}
function process_before( $code, $target ) {
wp_redirect( $target, $code );
die();
}
}