Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/09/2014 12:54:33 AM (12 years ago)
Author:
tw2113
Message:

Add hook documentation for the Blogs component

Fixes #5939

File:
1 edited

Legend:

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

    r9194 r9218  
    3434 */
    3535function bp_blogs_creation_location( $url ) {
     36
     37        /**
     38         * Filters the 'Create a new site' link URL.
     39         *
     40         * @since BuddyPress (1.6.0)
     41         *
     42         * @param string $value URL for the 'Create a new site' signup page.
     43         */
    3644        return apply_filters( 'bp_blogs_creation_location', trailingslashit( bp_get_root_domain() . '/' . bp_get_blogs_root_slug() . '/create', $url ) );
    3745}
    … …  
    8694        }
    8795
     96        /**
     97         * Filters whether or not BuddyPress should block sitewide tags activity.
     98         *
     99         * @since BuddyPress (2.2.0)
     100         *
     101         * @param bool $value Current status of the sitewide tags activity.
     102         */
    88103        if ( (int) $blog_id == $tags_blog_id && apply_filters( 'bp_blogs_block_sitewide_tags_activity', true ) ) {
    89104                return false;
    90105        }
    91106
     107        /**
     108         * Filters whether or not the current blog is public.
     109         *
     110         * @since BuddyPress (2.2.0)
     111         *
     112         * @param int $value Value from the blog_public option for the current blog.
     113         */
    92114        $is_blog_public = apply_filters( 'bp_is_blog_public', (int) get_blog_option( $blog_id, 'blog_public' ) );
    93115
Note: See TracChangeset for help on using the changeset viewer.