Skip to content
Snippets Groups Projects
Commit 07114a25 authored by Erick Hitter's avatar Erick Hitter
Browse files

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

parent c80bf221
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment