[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/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

  bp_blogs_creation_location()
  bp_blogs_comments_clauses_select_by_id()
  bp_blogs_post_pre_publish()
  bp_blogs_register_custom_site_icon_size()
  bp_blogs_default_avatar()
  bp_blogs_filter_meta_column_name()

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.

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

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

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

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()`.

since: 2.2.0
return: bool True to authorize the post to be published, otherwise false.
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.

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

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

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

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

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.

since: 4.0.0
return: string
param: string $retval



Generated: Tue Apr 23 01:01:07 2024 Cross-referenced by PHPXref 0.7.1