[ 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: 163 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 5 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_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
param: string $url The original URL (points to wp-signup.php by default).
return: string The new URL.

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
param: array $retval Current SQL clauses in array format.
return: array

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
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.

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
param: array $sizes Current array of custom site icon sizes.
return: array

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
param: string $retval
return: string



Generated: Mon Jul 15 01:01:40 2019 Cross-referenced by PHPXref 0.7.1