Custom Extension

Here's a custom extension boilerplate template for building custom functionality in VibeBP.

The VibeBP framework uses Bulma for its internal styling so we recommend re-using Bulma components to keep your CSS and scripts size to a minimum

Here's a sample extenstion which you can use to develop your custom features in the WPLMS / VibeBP framework.

104KB
Open
Vibe Boilterplate

Link to boilerplate with node modules : Download

Now, install this plugin and activate the addon.

Add to menu

2. Refresh BuddyPress navigation from WP admin - Vibebp - Settings - BuddyPress

this is the boiler plate addon

Now you can start building the extension.

1.. open the Vibe boilerplate plugin folder in the terminal or vscode

2. Now move to folder assets/boilerplate , if you open package.json there are 2 commands.

3. To initialise the react project, run

3. Start development mode.

understanding projkect strucutre

project structure

A sample API call looks like :

The handler in includes/class.api.php

the rest API init we define the API call

and its handler.

the permissions to validate the request is handled by VibeBP as this logged in area. It will also initialise a class object and assign the user value in the form as described below :

so the subsequent functions in a successful REST API call have the object $this->user as the validated user object passed from Vibebp to API call.

Video

Last updated

Was this helpful?