[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-core/ -> bp-core-wpabstraction.php (summary)

WordPress Abstraction. The functions within this file will detect the version of WordPress you are running and will alter the environment so BuddyPress can run regardless.

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

Defines 14 functions

  bp_get_major_wp_version()
  get_blog_option()
  add_blog_option()
  update_blog_option()
  delete_blog_option()
  switch_to_blog()
  restore_current_blog()
  get_blogs_of_user()
  update_blog_status()
  is_subdomain_install()
  bp_core_get_status_sql()
  mb_strlen()
  mb_strpos()
  mb_strrpos()

Functions
Functions that are not part of a class:

bp_get_major_wp_version()   X-Ref
Parse the WordPress core version number into the major release.

return: double $wp_version
since: 1.5.2

get_blog_option( $blog_id, $option_name, $default = false )   X-Ref
Retrieve blog option.

param: int    $blog_id     Blog ID to fetch for. Not used.
param: string $option_name Option name to fetch.
param: bool   $default     Whether or not default.
return: mixed
since: 1.0.0

add_blog_option( $blog_id, $option_name, $option_value )   X-Ref
Add blog option.

param: int    $blog_id      Blog ID to add for. Not used.
param: string $option_name  Option name to add.
param: mixed  $option_value Option value to add.
return: mixed
since: 1.2.0

update_blog_option( $blog_id, $option_name, $value )   X-Ref
Update blog option.

param: int    $blog_id     Blog ID to update for. Not used.
param: string $option_name Option name to update.
param: mixed  $value       Option value to update.
return: mixed
since: 1.2.0

delete_blog_option( $blog_id, $option_name )   X-Ref
Delete blog option.

param: int    $blog_id     Blog ID to delete for. Not used.
param: string $option_name Option name to delete.
return: mixed
since: 1.5.0

switch_to_blog( $new_blog, $deprecated = null )   X-Ref
Switch to specified blog.

param: mixed $new_blog   New blog to switch to. Not used.
param: null  $deprecated Whether or not deprecated. Not used.
return: int
since: 1.2.0

restore_current_blog()   X-Ref
Restore current blog.

return: int
since: 1.2.0

get_blogs_of_user( $user_id, $all = false )   X-Ref
Retrive blogs associated with user.

param: int  $user_id ID of the user. Not used.
param: bool $all     Whether or not to return all. Not used.
return: bool
since: 1.2.0

update_blog_status( $blog_id, $pref, $value, $deprecated = null )   X-Ref
Whether or not to update blog status.

param: int    $blog_id    Blog to update status for. Not used.
param: mixed  $pref       Preference. Not used.
param: string $value      Value. Not used.
param: null   $deprecated Whether or not deprecated. Not used.
return: bool
since: 1.2.0

is_subdomain_install()   X-Ref
Whether or not if subdomain install.

return: bool
since: 1.2.5.1

bp_core_get_status_sql( $prefix = false )   X-Ref
Get SQL chunk for filtering spam users from member queries.

param: string|bool $prefix Global table prefix.
return: string SQL chunk.

mb_strlen( $str, $enc = '' )   X-Ref
Fallback implementation of mb_strlen(), hardcoded to UTF-8.

param: string $str String to be measured.
param: string $enc Optional. Encoding type. Ignored.
return: int String length.

mb_strpos( $haystack, $needle, $offset = 0, $encoding = '' )   X-Ref
Fallback implementation of mb_strpos(), hardcoded to UTF-8.

param: string $haystack String to search in.
param: string $needle String to search for.
param: int    $offset Optional. Start position for the search. Default: 0.
param: string $encoding Optional. Encoding type. Ignored.
return: int|false Position of needle in haystack if found, else false.

mb_strrpos( $haystack, $needle, $offset = 0, $encoding = '' )   X-Ref
Fallback implementation of mb_strrpos(), hardcoded to UTF-8.

param: string $haystack String to search in.
param: string $needle String to search for.
param: int    $offset Optional. Start position for the search. Default: 0.
param: string $encoding Optional. Encoding type. Ignored.
return: string|false Position of last needle in haystack if found, else false.



Generated: Thu Jul 18 01:01:42 2019 Cross-referenced by PHPXref 0.7.1