Commit 07114a25 authored by Erick Hitter's avatar Erick Hitter

Introduce filter on status code prior to redirect, should someone wish to hardcode the value.

parent c80bf221
......@@ -204,6 +204,8 @@ class external_permalinks_redux {
if( is_singular() && ( $link = get_post_meta( $post->ID, $this->meta_key_target, true ) ) ) {
$type = intval( get_post_meta( $post->ID, $this->meta_key_type, true ) );
$type = apply_filters( 'epr_status_code', $type, $link, $post );
if( ! $type )
$type = 302;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment