WPIntell

Source evidence

Minor hack to remove seconds delay

Shortcode Redirect · support · 2019-10-30T18:29:00+00:00

complaintsentiment
highseverity
1.0relevance
3replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

6 / 29 rows with source links

20.7% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

23 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
danwolfe unresolved
This is an edit I did that works really well, figured I’d share it here…. – Wolfe http://www.danwolfe.me add_shortcode('redirect', 'scr_do_redirect'); function scr_do_redirect($atts) { ob_start(); $myURL = (isset($atts['url']) && !empty($atts['url']))?esc_url($atts['url']):""; $mySEC = (isset($atts['sec']) && !empty($atts['sec']))?esc_attr($atts['sec']):"0"; if(!empty($myURL)) { ?> <meta http-equiv="refresh" content="<?php echo $mySEC; ?>; url=<?php echo $myURL; ?>"> <?php wp_redirect($myURL, 301,'Redirected by ' ) ; } return ob_get_clean(); } ?> This topic was modified 6 years, 7 months ago by danwolfe . Reason: typo The page I need help with: [ log in to see the link] This may cause “headers already sent” errors if output has already started for the page. Where did you make the edit? Sorry, I know enough code to do what I need to do and research the rest. Thanks for your help. Never mind. I see you replaced the text on the plugins php file. It worked. Nice.

Comments

3 shown
cartpauj 2019-10-30T18:47:00+00:00

This may cause “headers already sent” errors if output has already started for the page.

mhudson 2020-04-08T13:09:00+00:00

Where did you make the edit? Sorry, I know enough code to do what I need to do and research the rest. Thanks for your help.

mhudson 2020-04-08T13:12:00+00:00

Never mind. I see you replaced the text on the plugins php file. It worked. Nice.