Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/21/2015 12:13:52 AM (10 years ago)
Author:
tw2113
Message:

Add hook documentation to BP Forums component.

Fixes #5941.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-forums/bp-forums-filters.php

    r9351 r9383  
    8484    $forums_allowedtags['blockquote'] = array();
    8585
     86    /**
     87     * Filters the allowed HTML tags for forum posts.
     88     *
     89     * @since BuddyPress (1.2.0)
     90     *
     91     * @param array $forums_allowedtags Array of allowed HTML tags.
     92     */
    8693    $forums_allowedtags = apply_filters( 'bp_forums_allowed_tags', $forums_allowedtags );
    8794    return wp_kses( $content, $forums_allowedtags );
     
    100107    global $bp;
    101108
     109    /**
     110     * Filters the link for a forum topic tags directory.
     111     *
     112     * @since BuddyPress (1.1.0)
     113     *
     114     * @param string $value Link for the forum topic tag directory.
     115     */
    102116    return apply_filters( 'bp_forums_filter_tag_link', bp_get_root_domain() . '/' . bp_get_forums_root_slug() . '/tag/' . $tag . '/' );
    103117}
Note: See TracChangeset for help on using the changeset viewer.