Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/acrosswp/copy-link-for-buddyboss/archive/refs/heads/main.zip@wordpress/scripts
https://developer.wordpress.org/block-editor/reference-guides/packages/packages-scripts/
Adding multipal input file
Now are using the https://github.com/x3p0-dev/x3p0-ideas/tree/block-example exmaple to setup out plugins
- Run
npm installcommand and it will generate folder and files - Now run
npm run buildcommand and it will generate plugin build - Now run
npm run startcommand and it will generate plugin on every file update
Create blocks
-
Once everything install goto
src/folder and runnpx @wordpress/create-block copy-link-for-buddyboss-block --no-plugin -
Now run
composer require wpboilerplate/wpb-register-blocks -
Now add
/**
- Check if class exists or not
*/
if ( class_exists( 'WPBoilerplate_Register_Blocks' ) ) {
new WPBoilerplate_Register_Blocks( $this->plugin_dir );
}
inside the `load_composer_dependencies` method at the end
-
Now run
composer require wpboilerplate/wpb-register-blocks -
Now run
composer update -
Once that is installed run
npm run build
Update your code via Github
-
run
composer require wpboilerplate/wpb-updater-checker-github -
Now run
composer update -
Now add
/**
-
Check if class exists or not */ /**
-
For Plugin Update via Github */ if ( class_exists( 'WPBoilerplate_Updater_Checker_Github' ) ) {
$package = array( 'repo' => 'https://github.com/WPBoilerplate/copy-link-for-buddyboss', 'file_path' => COPY_LINK_FOR_BUDDYBOSS_PLUGIN_FILE, 'plugin_name_slug' => COPY_LINK_FOR_BUDDYBOSS_PLUGIN_NAME_SLUG, 'release_branch' => 'main' );
new WPBoilerplate_Updater_Checker_Github( $package ); }
inside the `load_composer_dependencies` method at the end
Composer
Adding dependency for Custom Plugins
- Adding BuddyBoss Platform and Platform Pro dependency
composer require wpboilerplate/wpb-buddypress-or-buddyboss-dependencyand then add the below code in function load_dependencies after vendor autoload file includedrequire_once( COPY_LINK_FOR_BUDDYBOSS_PLUGIN_PATH . 'vendor/autoload.php' );
/**
* Add the dependency for the call
*/
if ( class_exists( 'WPBoilerplate_BuddyPress_BuddyBoss_Platform_Dependency' ) ) {
new WPBoilerplate_BuddyPress_BuddyBoss_Platform_Dependency( $this->get_plugin_name(), COPY_LINK_FOR_BUDDYBOSS_FILES );
}
-
Adding BuddyBoss Platform dependency
composer require wpboilerplate/wpb-buddyboss-dependency -
Adding WooCommerce dependency
composer require wpboilerplate/wpb-woocommerce-dependency -
Adding ACF Pro dependency
composer require wpboilerplate/acrossswp-acf-pro-dependency -
Adding View Analytics dependency
composer require wpboilerplate/wpb-view-analytics-dependency
Releases
5 releases.
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.