[ Index ]

PHP Cross Reference of BuddyPress




/src/bp-blogs/ -> bp-blogs-filters.php (summary)

Filters related to the Blogs component.

File Size: 188 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 6 functions


Functions that are not part of a class:

bp_blogs_creation_location( $url )   X-Ref
Ensure that the 'Create a new site' link at wp-admin/my-sites.php points to the BP blog signup.

param: string $url The original URL (points to wp-signup.php by default).
return: string The new URL.
since: 1.6.0

bp_blogs_comments_clauses_select_by_id( $retval )   X-Ref
Only select comments by ID instead of all fields when using get_comments().

param: array $retval Current SQL clauses in array format.
return: array
since: 2.1.0

bp_blogs_post_pre_publish( $return = true, $blog_id = 0, $post_id = 0, $user_id = 0 )   X-Ref
Check whether the current activity about a post or a comment can be published.

Abstracted from the deprecated `bp_blogs_record_post()`.

param: bool $return  Whether the post should be published.
param: int  $blog_id ID of the blog.
param: int  $post_id ID of the post.
param: int  $user_id ID of the post author.
return: bool True to authorize the post to be published, otherwise false.
since: 2.2.0

bp_blogs_register_custom_site_icon_size( $sizes )   X-Ref
Registers our custom thumb size with WP's Site Icon feature.

param: array $sizes Current array of custom site icon sizes.
return: array
since: 2.7.0

bp_blogs_default_avatar( $avatar, $params )   X-Ref
Use the mystery blog avatar for blogs.

param: string $avatar Current avatar src.
param: array  $params Avatar params.
return: string
since: 7.0.0

bp_blogs_filter_meta_column_name( $retval )   X-Ref
Filters the column name during blog metadata queries.

This filters 'sanitize_key', which is used during various core metadata
API functions: {@link https://core.trac.wordpress.org/browser/branches/4.9/src/wp-includes/meta.php?lines=47,160,324}.
Due to how we are passing our meta type, we need to ensure that the correct
DB column is referenced during blogmeta queries.

param: string $retval
return: string
since: 4.0.0

Generated: Sun Jun 26 01:00:53 2022 Cross-referenced by PHPXref 0.7.1