1
0
Fork 0
mirror of https://github.com/buddypress/buddypress.git synced 2026-07-23 21:06:56 +08:00
buddypress/docs/developer/components
Mathieu Viet 0f478ead86 Avoid WP 6.7 notice about using translatable strings too early
Use a "raw" name instead of a "translatable" name for the `BP_Component`'s & `BP_Theme_Compat`'s `name` properties.

Props boonebgorges.

See #9247 (trunk)
Closes https://github.com/buddypress/buddypress/pull/391



git-svn-id: https://buddypress.svn.wordpress.org/trunk@14059 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
2024-10-25 00:38:29 +00:00
..
activity Document the BuddyPress database schema 2024-10-15 21:25:23 +00:00
blogs Document the BuddyPress database schema 2024-10-15 21:25:23 +00:00
friends Document the BuddyPress database schema 2024-10-15 21:25:23 +00:00
groups Document the BuddyPress database schema 2024-10-15 21:25:23 +00:00
members Document the BuddyPress database schema 2024-10-15 21:25:23 +00:00
messages Document the BuddyPress database schema 2024-10-15 21:25:23 +00:00
notifications Document the BuddyPress database schema 2024-10-15 21:25:23 +00:00
xprofile Document the BuddyPress database schema 2024-10-15 21:25:23 +00:00
build-component.md Avoid WP 6.7 notice about using translatable strings too early 2024-10-25 00:38:29 +00:00
README.md Document the BuddyPress database schema 2024-10-15 21:25:23 +00:00

BuddyPress Components

BP Settings / Components

BuddyPress comes with several components that integrate directly with your site, with each other, and even with other plugins (check out bbPress for support forums). Site administrators can select the optional components they wish to activate for their community. Only 2 components are required and are always loaded into BuddyPress:

  • the Core component
  • the Members component

Extending existing components

Building a custom component

The more convenient way to build a custom component is to extend the BP_Component class from your plugin. This class contains methods you can override to set your component's globals such as the has_directory one which informs about whether your component is using a directory page or not, include the files your component needs, register and set up your component's displayed user navigation, customize your component's routes, init your component's REST API Endpoints or Blocks, etc.

Read about the BP Component details to learn more about it.