Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Update code
  • Loading branch information
raftaar1191 authored May 20, 2024
1 parent 3cb5ad3 commit fde6334
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,16 @@ https://developer.wordpress.org/block-editor/reference-guides/packages/packages-
### Adding dependency for Custom Plugins

1. Adding BuddyBoss Platform and Platform Pro dependency
```composer require acrosswp/acrosswp-buddypress-or-buddyboss-dependency```
```composer require acrosswp/acrosswp-buddypress-or-buddyboss-dependency```
and then add the below code in function load_dependencies after vendor autoload file included ```require_once( WORDPRESS_PLUGIN_BOILERPLATE_PLUGIN_PATH . 'vendor/autoload.php' );```
```
/**
* Add the dependency for the call
*/
if ( class_exists( 'AcrossWP_BuddyPress_BuddyBoss_Platform_Dependency' ) ) {
new AcrossWP_BuddyPress_BuddyBoss_Platform_Dependency( $this->get_plugin_name(), WORDPRESS_PLUGIN_BOILERPLATE_FILES );
}
```

2. Adding BuddyBoss Platform dependency
```composer require acrosswp/acrosswp-buddyboss-dependency```
Expand Down

0 comments on commit fde6334

Please sign in to comment.