bb_contextualise_search_post_text()
bb_contextualise_search_post_text()
package | bbPress |
---|
__
__ngettext
__ngettext_noop
_c
_e
_n
_n_noop
_nc
_nx
_nx_noop
_x
add_profile_tab
add_topic_tag
add_topic_tags
balanceTags
bb_add_action
bb_add_filter
bb_add_profile_tab
bb_add_query_arg
bb_apply_filters
bb_basename
bb_cache_javascript_headers
bb_can_access_tab
bb_check_comment_flood
bb_closed_title
bb_contextualise_search_post_text
bb_convert_path_base
bb_count_last_query
bb_current_time
bb_current_user_can
bb_datetime_format_i18n
bb_dbDelta
bb_deregister_view
bb_die
bb_do_action
bb_enqueue_script
bb_explain_nonce
bb_filter_feed_content
bb_find_filename
bb_flatten_array
bb_force_ssl_admin
bb_force_ssl_user_forms
bb_get_active_theme_directory
bb_get_active_theme_folder
bb_get_assignable_caps
bb_get_common_domains
bb_get_common_parts
bb_get_common_paths
bb_get_current_commenter
bb_get_datetime_formatstring_i18n
bb_get_id_from_slug
bb_get_inception
bb_get_locale
bb_get_page_number
bb_get_path
bb_get_plugin_directory
bb_get_plugin_path
bb_get_plugin_uri
bb_get_profile_admin_keys
bb_get_profile_info_keys
bb_get_sql_from_slug
bb_get_tag_by_name
bb_get_tag_rss_link
bb_get_theme_directory
bb_get_themes
bb_get_topic_tags_per_day
bb_get_total_topic_tags
bb_get_total_users
bb_get_uri
bb_get_uri_page
bb_get_user_by_name
bb_get_view_query_args
bb_get_views
bb_give_user_default_role
bb_glob
bb_global_profile_menu_structure
bb_global_sanitize
bb_gmdate_i18n
bb_inception
bb_init_roles
bb_install_footer
bb_install_header
bb_is_installed
bb_is_ssl
bb_load_default_textdomain
bb_load_plugin_textdomain
bb_load_theme_textdomain
bb_log_deprecated
bb_make_clickable
bb_make_db_current
bb_make_feed
bb_map_meta_cap
bb_match_domains
bb_maybe_add_column
bb_maybe_serialize
bb_maybe_unserialize
bb_no_where
bb_nonce_ays
bb_number_format_i18n
bb_offset_time
bb_paginate_links
bb_parse_args
bb_path_to_url
bb_pingback_header
bb_plugin_basename
bb_pull_cols
bb_random_pass
bb_register_activation_hook
bb_register_deactivation_hook
bb_register_default_views
bb_register_plugin_activation_hook
bb_register_plugin_deactivation_hook
bb_register_theme_activation_hook
bb_register_theme_deactivation_hook
bb_register_view
bb_related_tags
bb_related_tags_heat_map
bb_remove_action
bb_remove_filter
bb_remove_query_arg
bb_repermalink
bb_send_304
bb_send_headers
bb_set_custom_user_tables
bb_shutdown_action_hook
bb_since
bb_slug_increment
bb_specialchars
bb_sql_delta
bb_sql_describe_table
bb_sql_get_column_definition
bb_sql_get_index_definition
bb_sql_parse
bb_ssl_redirect
bb_tag_rss_link
bb_tag_sanitize
bb_tag_search
bb_theme_basename
bb_timer_start
bb_timer_stop
bb_topic_tags_per_day
bb_total_topic_tags
bb_total_users
bb_trim_common_path_right
bb_unregister_GLOBALS
bb_upgrade_1060
bb_uri
bb_url_to_path
bb_user_exists
bb_user_sanitize
bb_user_search
bb_verify_email
bb_view_query
before_last_bar
bozo_add_admin_page
bozo_add_recount_list
bozo_admin_page
bozo_delete_post
bozo_get_topic_posts
bozo_latest_filter
bozo_new_post
bozo_post_del_class
bozo_posts
bozo_pre_permalink
bozo_pre_post_status
bozo_profile_admin_keys
bozo_profile_db_filter
bozo_recount_topics
bozo_recount_users
bozo_topic_db_filter
bozo_topic_pages_add
bozo_topics
bozon
can_access_tab
cast_meta_value
closed_title
code_trick
code_trick_reverse
create_tag
current_user_is_bozo
decodeit
deleted_topics
destroy_tag
encode_bad
encodeit
esc_attr__
esc_attr_e
esc_attr_x
esc_html__
esc_html_e
fermion
forum_dropdown
forum_rss_link
get_assignable_caps
get_bb_location
get_bozos
get_deleted_posts
get_forum
get_forum_rss_link
get_forums
get_ids_by_role
get_inception
get_latest_forum_posts
get_latest_posts
get_locale
get_other_tags
get_page_number
get_path
get_popular_topics
get_post_timestamp
get_posts_per_day
get_profile_admin_keys
get_profile_info_keys
get_public_tags
get_recent_registrants
get_recent_rss_link
get_recent_user_replies
get_registrations_per_day
get_tag
get_tag_by_name
get_tag_id
get_tag_link
get_tag_link_base
get_tag_name
get_tag_page_link
get_tag_remove_link
get_tag_rss_link
get_tagged_topic_ids
get_top_tags
get_topic_date
get_topic_start_timestamp
get_topic_tags
get_topic_timestamp
get_topics_per_day
get_total_forums
get_total_posts
get_total_topics
get_total_users
get_translations_for_domain
get_user_tags
get_views
is_bb_admin
is_bb_favorites
is_bb_feed
is_bb_profile
is_bb_search
is_bb_stats
is_bb_tag
is_bb_tags
is_forum
is_front
is_tag
is_tags
is_topic
is_topic_edit
is_view
language_attributes
load_default_textdomain
load_plugin_textdomain
load_textdomain
load_theme_textdomain
make_link_view_all
merge_tags
new_topic
no_replies
no_where
option
paginate_links
post_author_cache
post_date
posts_per_day
registrations_per_day
remove_topic_tag
rename_tag
sanitize_with_dashes
show_context
tag_heat_map
tag_link
tag_link_base
tag_name
tag_page_link
tag_remove_link
tag_rss_link
tag_sanitize
topic_date
topic_start_date
topics_per_day
topics_replied_on_undelete_post
total_forums
total_posts
total_topics
total_users
translate
translate_with_context
translate_with_gettext_context
untagged
update_post_positions
update_user_status
user_sanitize
utf8_cut
wp_check_password
wp_clear_auth_cookie
wp_generate_password
wp_hash
wp_hash_password
wp_salt
wp_set_auth_cookie
wp_validate_auth_cookie
$old
BACKPRESS_PATH
BBDB_CHARSET
BBDB_COLLATE
BBDB_HOST
BBDB_NAME
BBDB_PASSWORD
BBDB_USER
BB_AUTH_KEY
BB_CORE_PLUGIN_DIR
BB_CORE_PLUGIN_URL
BB_CORE_THEME_DIR
BB_CORE_THEME_URL
BB_DATABASE_CLASS
BB_DATABASE_CLASS_INCLUDE
BB_DEFAULT_THEME
BB_DEFAULT_THEME_DIR
BB_DEFAULT_THEME_URL
BB_FORCE_SSL_ADMIN
BB_FORCE_SSL_USER_FORMS
BB_HASH
BB_INC
BB_INSTALLING
BB_IS_ADMIN
BB_IS_WP_LOADED
BB_LANG
BB_LANG
BB_LANG_DIR
BB_LOAD_DEPRECATED
BB_LOGGED_IN_KEY
BB_LOG_ALL
BB_LOG_DEBUG
BB_LOG_ERROR
BB_LOG_FAIL
BB_LOG_NONE
BB_LOG_NOTICE
BB_LOG_WARNING
BB_NONCE_KEY
BB_OBJECT_CACHE_FUNCTIONS_INCLUDE
BB_PATH
BB_PLUGIN_DIR
BB_PLUGIN_URL
BB_SECURE_AUTH_KEY
BB_THEME_DIR
BB_THEME_URL
BB_URI_CONTEXT_AKISMET
BB_URI_CONTEXT_A_HREF
BB_URI_CONTEXT_BB_ADMIN
BB_URI_CONTEXT_BB_FEED
BB_URI_CONTEXT_BB_USER_FORMS
BB_URI_CONTEXT_BB_XMLRPC
BB_URI_CONTEXT_FORM_ACTION
BB_URI_CONTEXT_HEADER
BB_URI_CONTEXT_IFRAME_SRC
BB_URI_CONTEXT_IMG_SRC
BB_URI_CONTEXT_LINK_ALTERNATE_HREF
BB_URI_CONTEXT_LINK_OTHER
BB_URI_CONTEXT_LINK_STYLESHEET_HREF
BB_URI_CONTEXT_NONE
BB_URI_CONTEXT_SCRIPT_SRC
BB_URI_CONTEXT_TEXT
BB_URI_CONTEXT_WP_HTTP_REQUEST
BPDB__CONNECT_ERROR_MESSAGE
BPDB__DB_VERSION_ERROR
BPDB__ERROR_HTML
BPDB__ERROR_STRING
BPDB__PHP_EXTENSION_MISSING
BPDB__SELECT_ERROR_MESSAGE
DOING_CRON
WP_AUTH_COOKIE_VERSION
XMLRPC_REQUEST
__(string $text, string $domain = 'default'
) : string
package | bbPress |
---|---|
see | An alias of translate() |
since | 0.7.2 |
string
Text to translate
string
Optional. Domain to retrieve the translated text
string
Translated text_c(string $text, string $domain = 'default'
) : string
Quite a few times, there will be collisions with similar translatable text found in more than two places but with different translated context.
In order to use the separate contexts, the _c() function is used and the translatable string uses a pipe ('|') which has the context the string is in.
When the translated string is returned, it is everything before the pipe, not including the pipe character. If there is no pipe in the translated text then everything is returned.
package | bbPress |
---|---|
since | 1.0 |
string
Text to translate
string
Optional. Domain to retrieve the translated text
string
Translated context string without pipe_e(string $text, string $domain = 'default'
)
package | bbPress |
---|---|
see | Echos returned translate() string |
since | 0.7.2 |
string
Text to translate
string
Optional. Domain to retrieve the translated text
_n(string $single, string $plural, integer $number, string $domain = 'default'
) : string
If the domain is not set in the $l10n list, then a comparsion will be made and either $plural or $single parameters returned.
If the domain does exist, then the parameters $single, $plural, and $number will first be passed to the domain's ngettext method. Then it will be passed to the 'ngettext' filter hook along with the same parameters. The expected type will be a string.
string
The text that will be used if $number is 1
string
The text that will be used if $number is not 1
integer
The number to compare against to use either $single or $plural
string
Optional. The domain identifier the text should be retrieved in
string
Either $single or $plural translated text_n_noop($single, $plural) : array
Used when you want do keep structures with translatable plural strings and use them later.
Example: $messages = array( 'post' => _n_noop('%s post', '%s posts'), 'page' => _n_noop('%s pages', '%s pages') ); ... $message = $messages[$type]; $usable_text = sprintf(_n($message[0], $message[1], $count), $count);
package | bbPress |
---|---|
since | 1.0 |
Single form to be i18ned
Plural form to be i18ned
array
array($single, $plural)_nc($single, $plural, $number, $domain = 'default'
)
package | bbPress |
---|---|
see | A version of _n(), which supports contexts -- strips everything from the translation after the last bar |
since | 1.0 |
_nx($single, $plural, $number, $context, $domain = 'default'
)
_nx_noop($single, $plural, $context)
_x($single, $context, $domain = 'default'
)
add_profile_tab($tab_title, $users_cap, $others_cap, $file, $arg = false
)
bb_add_action($tag, $function_to_add, $priority = 10
)
bb_add_filter($tag, $function_to_add, $priority = 10
)
bb_add_profile_tab($tab_title, $users_cap, $others_cap, $file, $arg = false
)
bb_apply_filters($tag, $string, $filter = true
)
bb_can_access_tab($profile_tab, $viewer_id, $owner_id)
bb_convert_path_base($path, $from_base, $to_base)
bb_current_user_can(string $capability) : boolean
package | bbPress |
---|---|
since | 0.7.2 |
uses | Current User Object |
string
Capability or role name.
boolean
bb_datetime_format_i18n($unixtimestamp, $type= 'datetime'
, $formatstring= ''
, $gmt= true
)
bb_die($message, $title= ''
, $header= 0
)
bb_enqueue_script($handle, $src= false
, $deps= array()
, $ver= false
)
bb_flatten_array($array, $cut_branch= 0
, $keep_child_array_keys= true
)
bb_get_common_domains($domain1= false
, $domain2= false
)
bb_get_common_parts($string1= false
, $string2= false
, $delimiter= ''
, $reverse= false
)
bb_get_common_paths($path1= false
, $path2= false
)
bb_get_datetime_formatstring_i18n($type = 'datetime'
)
bb_get_id_from_slug($table, $slug, $slug_length = 255
)
bb_get_inception(string|array $args = ''
) : integer
package | bbPress |
---|---|
since | 0.8 |
uses | Database Object |
uses | Result cache |
string
array
Formatting options for the timestamp.
integer
bb_get_locale() : string
If the locale is set, then it will filter the locale in the 'locale' filter hook and return the value.
If the locale is not set already, then the BB_LANG constant is used if it is defined. Then it is filtered through the 'locale' filter hook and the value for the locale global set and the locale is returned.
The process to get the locale should only be done once but the locale will always be filtered using the 'locale' hook.
package | bbPress |
---|---|
since | 0.7.2 |
uses | Calls 'locale' hook on locale value. |
uses | Gets the locale stored in the global. |
string
The locale of the blog or from the 'locale' hook.bb_get_page_number($item, $per_page = 0
)
bb_get_path($level= 1
, $base= false
, $request= false
)
bb_get_plugin_directory($plugin= false
, $path= false
)
bb_get_profile_admin_keys($context = null
)
bb_get_profile_info_keys($context = null
)
bb_get_sql_from_slug($table, $slug, $slug_length = 255
)
bb_get_tag_rss_link($tag_id= 0
, $context= 0
)
bb_get_total_users() : integer
package | bbPress |
---|---|
since | 1.0 |
uses | Database Object |
uses | Cache of result generated by previous run |
integer
bb_get_uri($resource= null
, $query= null
, $context= BB_URI_CONTEXT_A_HREF
) : string
package | bbPress |
---|---|
since | 1.0 |
string The directory, may include a querystring
mixed The query arguments as a querystring or an associative array
integer The context of the URI, use BB_URICONTEXT*
string
The complete URIbb_give_user_default_role(\BP_User $user)
bb_global_sanitize(mixed $array, boolean $trim = true
) : mixed
package | bbPress |
---|
mixed
The array of values or a single value to sanitize, usually a global variable like $_GET or $_POST.
boolean
Optional. Whether to trim the value or not. Default is true.
mixed
The sanitized data.bb_gmdate_i18n(string $dateformatstring, integer $unixtimestamp= false
, boolean $gmt= true
) : string
If the locale specifies the locale month and weekday, then the locale will take over the format for the date. If it isn't, then the date format string will be used instead.
package | bbPress |
---|
string
Format to display the date.
integer
Optional. Unix timestamp.
boolean
Optional, default is true. Whether to convert to GMT for time.
string
The date, translated if locale specifies it.bb_inception(string|array $args = ''
)
package | bbPress |
---|---|
since | 0.8 |
string
array
Arguments to pass through to bb_get_inception()
bb_init_roles(\BP_Roles $roles)
bb_install_header($title= ''
, $header= false
, $logo= false
)
bb_is_installed() : boolean
bb_load_default_textdomain()
Loads the .mo file in WP_LANG_DIR constant path from WordPress root. The translated (.mo) file is named based off of the locale.
package | bbPress |
---|---|
since | 1.5.0 |
bb_load_plugin_textdomain(string $domain, string $path = false
)
If the path is not given then it will be the root of the plugin directory. The .mo file should be named based on the domain with a dash followed by a dash, and then the locale exactly.
package | bbPress |
---|---|
since | 0.7.2 |
string
Unique identifier for retrieving translated strings
string
Optional. Absolute path to folder where the .mo file resides
bb_load_theme_textdomain(string $domain, $path = false
)
If the current locale exists as a .mo file in the theme's root directory, it will be included in the translated strings by the $domain.
The .mo files must be named based on the locale exactly.
package | bbPress |
---|---|
since | 0.7.2 |
string
Unique identifier for retrieving translated strings
bb_log_deprecated(string $type, string $name, string $replacement = 'none'
)
package | bbPress |
---|---|
since | 0.9 |
uses | BP_Log logging object. |
string
The type of thing that was attempted: function, class::function, constant, variable or page.
string
The thing that was called.
string
Optional. The thing that should have been called.
bb_match_domains($domain1= false
, $domain2= false
)
bb_maybe_add_column($table_name, $column_name, $create_ddl)
bb_number_format_i18n(mixed $number, integer $decimals = null
) : string
package | bbPress |
---|---|
since | 2.3.0 |
mixed
The number to convert based on locale.
integer
Precision of the number of decimal places.
string
Converted number in string format.bb_paginate_links(string|array $args = ''
) : array | string
Technically, the function can be used to create paginated link list for any area. The 'base' argument is used to reference the url, which will be used to create the paginated links. The 'format' argument is then used for replacing the page number. It is however, most likely and by default, to be used on the archive post pages.
The 'type' argument controls format of the returned value. The default is 'plain', which is just a string with the links separated by a newline character. The other possible values are either 'array' or 'list'. The 'array' value will return an array of the paginated link list to offer full control of display. The 'list' value will place all of the paginated links in an unordered HTML list.
The 'total' argument is the total amount of pages and is an integer. The 'current' argument is the current page number and is also an integer.
An example of the 'base' argument is "http://example.com/all_posts.php%_%" and the '%%' is required. The '%%' will be replaced by the contents of in the 'format' argument. An example for the 'format' argument is "?page=%#%" and the '%#%' is also required. The '%#%' will be replaced with the page number.
You can include the previous and next links in the list by setting the 'prev_next' argument to true, which it is by default. You can set the previous text, by using the 'prev_text' argument. You can set the next text by setting the 'next_text' argument.
If the 'show_all' argument is set to true, then it will show all of the pages instead of a short list of the pages near the current page. By default, the 'show_all' is set to false and controlled by the 'end_size' and 'mid_size' arguments. The 'end_size' argument is how many numbers on either the start and the end list edges, by default is 1. The 'mid_size' argument is how many numbers to either side of current page, but not including current page.
It is possible to add query vars to the link by using the 'add_args' argument and see add_query_arg() for more information.
package | bbPress |
---|---|
since | 1.0 |
string
array
Optional. Override defaults.
array
string
String of page links or array of page links.bb_register_activation_hook($file, $function)
bb_register_deactivation_hook($file, $function)
bb_register_plugin_activation_hook($file, $function)
bb_register_plugin_deactivation_hook($file, $function)
bb_register_theme_activation_hook($file, $function)
bb_register_theme_deactivation_hook($file, $function)
bb_register_view($view, $title, $query_args= ''
, $feed= TRUE
)
bb_remove_action($tag, $function_to_remove, $priority = 10
)
bb_remove_filter($tag, $function_to_remove, $priority = 10
)
bb_send_304(string $bb_last_modified)
The function sends the Last-Modified and ETag headers for all clients. It then checks both the If-None-Match and If-Modified-Since headers to see if the client has used them. If so, and the ETag does matches the client ETag or the last modified date sent by the client is newer or the same as the generated last modified, the function sends a 304 Not Modified and exits.
package | bbPress |
---|---|
link | http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3 |
string
Last modified time. Must be a HTTP-date
bb_set_custom_user_tables() : boolean
bb_slug_increment($slug, $existing_slug, $slug_length = 255
)
bb_sql_get_column_definition($column_data)
bb_sql_get_index_definition($index_data)
bb_tag_rss_link($tag_id= 0
, $context= 0
)
bb_timer_start() : boolean
package | bbPress |
---|---|
access | private |
global | int $bb_timestart Seconds and Microseconds added together from when function is called |
boolean
Always returns truebb_timer_stop($display= 0
, $precision= 3
)
bb_trim_common_path_right($one, $two)
bb_unregister_GLOBALS() : null
package | bbPress |
---|---|
access | private |
null
Will return null if register_globals PHP directive was disabledbb_uri($resource= null
, $query= null
, $context= BB_URI_CONTEXT_A_HREF
) : void
package | bbPress |
---|---|
since | 1.0 |
string The directory, may include a querystring
mixed The query arguments as a querystring or an associative array
integer The context of the URI, use BB_URICONTEXT*
bb_user_sanitize($text, $strict = false
)
bb_verify_email($email, $check_dns = false
)
bozo_delete_post($post_id, $new_status, $old_status)
bozo_pre_post_status($status, $post_id, $topic_id)
can_access_tab($profile_tab, $viewer_id, $owner_id)
destroy_tag($tag_id, $recount_topics = true
)
esc_attr__(string $text, string $domain = 'default'
) : string
If there is no translation, or the domain isn't loaded the original text is returned.
package | bbPress |
---|---|
see | An alias of translate() |
see | |
since | 1.0 |
string
Text to translate
string
Optional. Domain to retrieve the translated text
string
Translated textesc_attr_e(string $text, string $domain = 'default'
)
package | bbPress |
---|---|
see | Echoes returned translate() string |
see | |
since | 1.0 |
string
Text to translate
string
Optional. Domain to retrieve the translated text
esc_attr_x($single, $context, $domain = 'default'
)
esc_html__(string $text, string $domain = 'default'
) : string
If there is no translation, or the domain isn't loaded the original text is returned.
package | bbPress |
---|---|
see | An alias of translate() |
see | |
since | 1.0 |
string
Text to translate
string
Optional. Domain to retrieve the translated text
string
Translated textesc_html_e(string $text, string $domain = 'default'
)
package | bbPress |
---|---|
see | Echoes returned translate() string |
see | |
since | 1.0 |
string
Text to translate
string
Optional. Domain to retrieve the translated text
get_deleted_posts($page= 1
, $limit= false
, $status= 1
, $topic_status= 0
)
get_ids_by_role($role= 'moderator'
, $sort= 0
, $limit_str= ''
)
get_latest_forum_posts($forum_id, $limit= 0
, $page= 1
)
get_path($level= 1
, $base= false
, $request= false
)
get_popular_topics(integer $num = 10
) : array
get_posts_per_day() : integer | float
get_profile_admin_keys($context = null
)
get_registrations_per_day() : integer | float
get_tag($tag_id, $user_id= 0
, $topic_id= 0
)
get_topics_per_day() : integer | float
get_total_forums() : integer
package | bbPress |
---|---|
since | 1.0 |
uses | Database Object |
uses | Cache of result generated by previous run |
integer
get_total_posts() : integer
package | bbPress |
---|---|
since | 0.7.2 |
uses | Database Object |
uses | Cache of result generated by previous run |
integer
get_total_topics() : integer
package | bbPress |
---|---|
since | 0.7.2 |
uses | Database Object |
uses | Cache of result generated by previous run |
integer
get_translations_for_domain(string $domain) : object
load_plugin_textdomain($domain, $path = false
)
load_textdomain(string $domain, string $mofile) : null
If the domain already exists, the inclusion will fail. If the MO file is not readable, the inclusion will fail.
On success, the mofile will be placed in the $l10n global by $domain and will be an gettext_reader object.
package | bbPress |
---|---|
since | 0.7.2 |
uses | Gets list of domain translated string (gettext_reader) objects |
uses | Reads the MO file |
uses | Allows for retrieving translated strings |
string
Unique identifier for retrieving translated strings
string
Path to the .mo file
null
On failure returns null and also on success returns nothing.load_theme_textdomain($domain, $path = false
)
registrations_per_day()
package | bbPress |
---|---|
since | 0.7.2 |
remove_topic_tag($tag_id, $user_id, $topic_id)
sanitize_with_dashes($text, $length = 200
)
topics_replied_on_undelete_post($post_id)
translate(string $text, string $domain = 'default'
) : string
package | bbPress |
---|---|
see | Don't use translate() directly, use __() |
since | 1.0 |
uses | Calls 'gettext' on domain translated text with the untranslated text as second parameter. |
string
Text to translate.
string
Domain to retrieve the translated text.
string
Translated texttranslate_with_context(string $text, string $domain = 'default'
) : string
package | bbPress |
---|---|
since | 1.0 |
uses |
string
Text to translate
string
Domain to retrieve the translated text
string
Translated texttranslate_with_gettext_context($text, $context, $domain = 'default'
)
update_user_status($user_id, $user_status = 0
)
wp_check_password($password, $hash, $user_id = ''
)
wp_generate_password($length= 12
, $special_chars= true
)
BB_CORE_PLUGIN_DIR = BB_PATH . 'bb-plugins/'
package | bbPress |
---|
BB_CORE_PLUGIN_URL = $bb->uri . 'bb-plugins/'
package | bbPress |
---|
BB_CORE_THEME_DIR = BB_PATH . 'bb-templates/'
package | bbPress |
---|
BB_CORE_THEME_URL = $bb->uri . 'bb-templates/'
package | bbPress |
---|
BB_DATABASE_CLASS_INCLUDE = BACKPRESS_PATH . 'class.bpdb-multi.php'
package | bbPress |
---|
BB_DEFAULT_THEME_DIR = BB_CORE_THEME_DIR . 'kakumei/'
package | bbPress |
---|
BB_DEFAULT_THEME_URL = BB_CORE_THEME_URL . 'kakumei/'
package | bbPress |
---|
BB_LANG = ''
Change this to localize bbPress. A corresponding MO file for the chosen language must be installed to a directory called "my-languages" in the root directory of bbPress. For example, install de.mo to "my-languages" and set BB_LANG to 'de' to enable German language support.
package | bbPress |
---|
BB_LOG_ALL = BB_LOG_FAIL + BB_LOG_ERROR + BB_LOG_WARNING + BB_LOG_NOTICE
package | bbPress |
---|
BB_LOG_NONE = 0
package | bbPress |
---|
BB_OBJECT_CACHE_FUNCTIONS_INCLUDE = $_internal_object_cache_functions_include
package | bbPress |
---|
BB_URI_CONTEXT_NONE = 0
since | 1.0 |
---|---|
package | bbPress |
BPDB__CONNECT_ERROR_MESSAGE = 'ERROR: Could not establish a database connection'
package | bbPress |
---|
BPDB__DB_VERSION_ERROR = 'ERROR: bbPress requires MySQL 4.0.0 or higher'
package | bbPress |
---|
BPDB__ERROR_HTML = '<div id="error"><p class="bpdberror"><strong>Database error:</strong> [%s]<br /><code>%s</code><br />Caller: %s</p></div>'
package | bbPress |
---|
BPDB__ERROR_STRING = 'ERROR: bbPress database error - "%s" for query "%s" via caller "%s"'
package | bbPress |
---|
BPDB__PHP_EXTENSION_MISSING = 'ERROR: bbPress requires The MySQL PHP extension'
package | bbPress |
---|
BPDB__SELECT_ERROR_MESSAGE = 'ERROR: Can\'t select database.'
package | bbPress |
---|
bb_delete_all_user_settings()
bb_delete_user_setting(mixed $names)
bb_get_all_user_settings() : array
bb_get_user_setting(string $name, string $default = false
) : mixed
bb_update_user_setting(string $name, string $value)
bb_user_settings()
bb_nonce_field(string $action= -1
, string $name= "_wpnonce"
, boolean $referer= true
, boolean $echo= true
) : string
The nonce field is used to validate that the contents of the form came from the location on the current site and not somewhere else. The nonce does not offer absolute protection, but should protect against most cases. It is very important to use nonce field in forms.
If you set $echo to true and set $referer to true, then you will need to retrieve the wp referer field. If you have the $referer set to true and are echoing the nonce field, it will also echo the referer field.
The $action and $name are optional, but if you want to have better security, it is strongly suggested to set those two parameters. It is easier to just call the function without any parameters, because validation of the nonce doesn't require any parameters, but since crackers know what the default is it won't be difficult for them to find a way around your nonce and cause damage.
The input name will be whatever $name value you gave. The input value will be the nonce creation value.
package | bbPress |
---|---|
package | bbPress |
subpackage | Security |
since | 1.0 |
string
Optional. Action name.
string
Optional. Nonce name.
boolean
Optional, default true. Whether to set the referer field for validation.
boolean
Optional, default true. Whether to display or return hidden form field.
string
Nonce field.bb_nonce_url(string $actionurl, string $action = -1
) : string
bb_delete_transient(string $transient) : boolean
bb_get_transient(string $transient) : mixed
bb_set_transient(string $transient, mixed $value, integer $expiration = 0
) : boolean
You do not need to serialize values, if the value needs to be serialize, then it will be serialized before it is set.
package | bbPress |
---|---|
package | bbPress |
since | 1.0 |
subpackage | Transient |
string
Transient name. Expected to not be SQL-escaped
mixed
Transient value.
integer
Time until expiration in seconds, default 0
boolean
False if value was not set and true if value was set.
bb_check_comment_flood()
Parameters
$ip
$email
$date