Skip to:
Content
Pages
Categories
Search
Top
Bottom

What's "bp_before_blog_page" all about?

  • Avatar of olivernielsen
    olivernielsen
    Participant

    @olivernielsen

    Spread around the defaultt heme, there are tags like:

    <?php do_action( ‘bp_before_blog_page’ ) ?>

    and

    <?php do_action( ‘bp_before_search_login_bar’ ) ?>

    But what are they used for? I’m doing a custom theme, and would like to know if it’s bad to remove themP What would happen?

Viewing 3 replies - 1 through 3 (of 3 total)
  • They are action hooks and can be used by custom themes and plugins. Leave them in.

    Ya. Haven’t played with them but it’s a cool idea. I assume it allows you to do “stuff” at those points in the code… i.e… run / insert something at those locations in the templates using a functions.php file. Pretty cool. WordPress has them as well.

    Avatar of olivernielsen
    olivernielsen
    Participant

    @olivernielsen

    Hmm, okay, thanks guys!

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.