Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

How can I execute a function, which is in a plugin, only once the entire page is displayed ?

share|improve this question
1  
Be more specific please and give the code for your function. Is it already hooked in WP? –  JMau Aug 1 '13 at 10:39
add comment

1 Answer

up vote 1 down vote accepted

Last action you can do...

add_action('shutdown', 'before_the_end_of_world');

function before_the_end_of_world() {
   die('I will miss you, wordpress');
}
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.