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.

I decide to manipulate index page or all pages except admin page with plugin but I don't know which filters or actions control index page. for example if I want write plugin that shows a link to admin page which filter or action responsible for it?

share|improve this question
    
What does "manipulate index page"? Alter the query? Alter the template that loads? Insert content? What? –  s_ha_dum Jul 8 '13 at 17:15
    
change the content like insert a link to index page for example in top of page, but this task must be done with plugin, which filter or action can i use to this propose? you know there is a lot of filter and action it's hard to find appropriate filter or action fot this issue. –  user1695063 Jul 8 '13 at 18:18

1 Answer 1

There are only a few reliable filters for front end content, the_content being the only one that seems reasonably applicable. With that you can insert content in the post body.

There are also actions like template_redirect and template_include but I doubt those execute where you want them to and using them could be tricky anyway.

There is also a loop_start action that executes, as the name suggests, when the Loop starts. echoing content from that would be very prone to error though.

I don't honestly know it there is a hook that will work for you.

share|improve this answer
    
OK i test them and tell you the result –  user1695063 Jul 8 '13 at 18:36

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.