How to know if you are in the_content() or the_excerpt()? (1 post)

  1. Jacob N. Breetvelt
    Posted 5 years ago #

    A filter installed for the_content() like:

    add_filter('the_content', 'my_filter');

    appears to not only run on the_content() as one should expect, but also runs on the_excerpt().

    This is a problem for me. As there are no boolean functions: is_content() and is_excerpt(), how do i know if i am in the_content() or in the_excerpt()?

Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 5 years ago by Jacob N. Breetvelt
  • This topic is not resolved
  • WordPress version: 3.1.3


No tags yet.