[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

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

Plugin Dependency Action Hooks. The purpose of the following hooks is to mimic the behavior of something called 'plugin dependency' which enables a plugin to have plugins of their own in a safe and reliable way.

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

Defines 42 functions

  bp_include()
  bp_late_include()
  bp_setup_components()
  bp_setup_canonical_stack()
  bp_register_taxonomies()
  bp_register_type_metadata()
  bp_register_post_types()
  bp_setup_globals()
  bp_setup_nav()
  bp_setup_admin_bar()
  bp_setup_title()
  bp_setup_widgets()
  bp_register_member_types()
  bp_setup_cache_groups()
  bp_setup_current_user()
  bp_init()
  bp_rest_api_init()
  bp_blocks_init()
  bp_customize_register()
  bp_loaded()
  bp_ready()
  bp_actions()
  bp_screens()
  bp_widgets_init()
  bp_head()
  bp_template_redirect()
  bp_register_theme_directory()
  bp_register_theme_packages()
  bp_enqueue_scripts()
  bp_enqueue_embed_scripts()
  bp_add_rewrite_tags()
  bp_add_rewrite_rules()
  bp_add_permastructs()
  bp_setup_theme()
  bp_after_setup_theme()
  bp_request()
  bp_login_redirect()
  bp_template_include()
  bp_generate_rewrite_rules()
  bp_allowed_themes()
  bp_post_request()
  bp_get_request()

Functions
Functions that are not part of a class:

bp_include()   X-Ref
Fire the 'bp_include' action, where plugins should include files.

since: 1.2.5

bp_late_include()   X-Ref
Fire the 'bp_late_include' action for loading conditional files.

since: 3.0.0

bp_setup_components()   X-Ref
Fire the 'bp_setup_components' action, where plugins should initialize components.

since: 1.6.0

bp_setup_canonical_stack()   X-Ref
Fire the 'bp_setup_canonical_stack' action, where plugins should set up their canonical URL.

since: 2.1.0

bp_register_taxonomies()   X-Ref
Fire the 'bp_register_taxonomies' action, where plugins should register taxonomies.

since: 2.2.0

bp_register_type_metadata()   X-Ref
Fire the 'bp_register_type_metadata' action, where plugins should register metadata for their custom BuddyPress types.

since: 7.0.0

bp_register_post_types()   X-Ref
Fire the 'bp_register_post_types' action, where plugins should register post types.

since: 2.5.0

bp_setup_globals()   X-Ref
Fire the 'bp_setup_globals' action, where plugins should initialize global settings.

since: 1.2.0

bp_setup_nav()   X-Ref
Fire the 'bp_setup_nav' action, where plugins should register their navigation items.

since: 1.2.0

bp_setup_admin_bar()   X-Ref
Fire the 'bp_setup_admin_bar' action, where plugins should add items to the WP admin bar.

since: 1.5.0

bp_setup_title()   X-Ref
Fire the 'bp_setup_title' action, where plugins should modify the page title.

since: 1.5.0

bp_setup_widgets()   X-Ref
Fire the 'bp_register_widgets' action, where plugins should register widgets.

since: 1.2.0

bp_register_member_types()   X-Ref
Fire the 'bp_register_member_types' action, where plugins should register member types.

since: 2.3.0

bp_setup_cache_groups()   X-Ref
Fire the 'bp_setup_cache_groups' action, where cache groups are registered.

since: 2.2.0

bp_setup_current_user()   X-Ref
Set up the currently logged-in user.

since: 1.7.0

bp_init()   X-Ref
Fire the 'bp_init' action, BuddyPress's main initialization hook.

since: 1.2.5

bp_rest_api_init()   X-Ref
Fire the 'bp_rest_api_init' action, where BuddyPress registers REST API endpoints.

since: 2.6.0

bp_blocks_init()   X-Ref
BP Blocks Init hook.

since: 6.0.0

bp_customize_register( WP_Customize_Manager $customizer )   X-Ref
Fire the 'bp_customize_register' action when the Customizer has loaded,
allowing scripts and styles to be initialized.

param: WP_Customize_Manager $customizer Customizer instance.
since: 2.5.0

bp_loaded()   X-Ref
Fire the 'bp_loaded' action, which fires after BP's core plugin files have been loaded.

Attached to 'plugins_loaded'.

since: 1.2.0

bp_ready()   X-Ref
Fire the 'bp_ready' action, which runs after BP is set up and the page is about to render.

Attached to 'wp'.

since: 1.6.0

bp_actions()   X-Ref
Fire the 'bp_actions' action, which runs just before rendering.

Attach potential template actions, such as catching form requests or routing
custom URLs.

since: 1.5.0

bp_screens()   X-Ref
Fire the 'bp_screens' action, which runs just before rendering.

Runs just after 'bp_actions'. Use this hook to attach your template
loaders.

since: 1.5.0

bp_widgets_init()   X-Ref
Fire 'bp_widgets_init', which runs after widgets have been set up.

Hooked to 'widgets_init'.

since: 1.6.0

bp_head()   X-Ref
Fire 'bp_head', which is used to hook scripts and styles in the <head>.

Hooked to 'wp_head'.

since: 1.6.0

bp_template_redirect()   X-Ref
Fire the 'bp_template_redirect' action.

Run at 'template_redirect', just before WordPress selects and loads a theme
template. The main purpose of this hook in BuddyPress is to redirect users
who do not have the proper permission to access certain content.

since: 1.6.0

bp_register_theme_directory()   X-Ref
Fire the 'bp_register_theme_directory' action.

The main action used registering theme directories.

since: 1.5.0

bp_register_theme_packages()   X-Ref
Fire the 'bp_register_theme_packages' action.

The main action used registering theme packages.

since: 1.7.0

bp_enqueue_scripts()   X-Ref
Fire the 'bp_enqueue_scripts' action, where BP enqueues its CSS and JS.

since: 1.6.0

bp_enqueue_embed_scripts()   X-Ref
Fires the 'bp_enqueue_embed_scripts' action in the <head> for BP oEmbeds.

since: 2.6.0

bp_add_rewrite_tags()   X-Ref
Fire the 'bp_add_rewrite_tag' action, where BP adds its custom rewrite tags.

since: 1.8.0

bp_add_rewrite_rules()   X-Ref
Fire the 'bp_add_rewrite_rules' action, where BP adds its custom rewrite rules.

since: 1.9.0

bp_add_permastructs()   X-Ref
Fire the 'bp_add_permastructs' action, where BP adds its BP-specific permalink structure.

since: 1.9.0

bp_setup_theme()   X-Ref
Fire the 'bp_setup_theme' action.

The main purpose of 'bp_setup_theme' is give themes a place to load their
BuddyPress-specific functionality.

since: 1.6.0

bp_after_setup_theme()   X-Ref
Fire the 'bp_after_setup_theme' action.

Piggy-back action for BuddyPress-specific theme actions once the theme has
been set up and the theme's functions.php has loaded.

Hooked to 'after_setup_theme' with a priority of 100. This allows plenty of
time for other themes to load their features, such as BuddyPress support,
before our theme compatibility layer kicks in.

since: 1.6.0

bp_request( $query_vars = array()   X-Ref
Fire the 'bp_request' filter, a piggy-back of WP's 'request'.

param: array $query_vars See {@link WP::parse_request()}.
return: array $query_vars See {@link WP::parse_request()}.
since: 1.7.0

bp_login_redirect( $redirect_to = '', $redirect_to_raw = '', $user = false )   X-Ref
Fire the 'bp_login_redirect' filter, a piggy-back of WP's 'login_redirect'.

param: string $redirect_to     See 'login_redirect'.
param: string $redirect_to_raw See 'login_redirect'.
param: bool   $user            See 'login_redirect'.
return: string
since: 1.7.0

bp_template_include( $template = '' )   X-Ref
Fire 'bp_template_include', main filter used for theme compatibility and displaying custom BP theme files.

Hooked to 'template_include'.

param: string $template See 'template_include'.
return: string Template file to use.
since: 1.6.0

bp_generate_rewrite_rules( $wp_rewrite )   X-Ref
Fire the 'bp_generate_rewrite_rules' action, where BP generates its rewrite rules.

param: WP_Rewrite $wp_rewrite See 'generate_rewrite_rules'.
since: 1.7.0

bp_allowed_themes( $themes )   X-Ref
Fire the 'bp_allowed_themes' filter.

Filter the allowed themes list for BuddyPress-specific themes.

param: array $themes The path of the template to include.
return: array
since: 1.7.0

bp_post_request()   X-Ref
The main action used for handling theme-side POST requests.

since: 1.9.0

bp_get_request()   X-Ref
The main action used for handling theme-side GET requests.

since: 1.9.0



Generated: Thu Dec 26 01:01:04 2024 Cross-referenced by PHPXref 0.7.1