WP Manifestindependent plugin directory
manifest / social / date-formatter

Date Formatter for BuddyBoss

Enhance the user experience on your BuddyBoss (or BuddyPress) platform by displaying actual dates instead of relative timestamps like "2 weeks ago" or "3 days ago."

★ 0stars
v1.0.3latest · 2 years ago

Install

Download source zip No release zip yet

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/date-formatter/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

@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

  1. Run npm install command and it will generate folder and files
  2. Now run npm run build command and it will generate plugin build
  3. Now run npm run start command and it will generate plugin on every file update

Create blocks

  1. Once everything install goto src/ folder and run npx @wordpress/create-block date-formatter-block --no-plugin

  2. Now run composer require wpboilerplate/wpb-register-blocks

  3. 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
  1. Now run composer require wpboilerplate/wpb-register-blocks

  2. Now run composer update

  3. Once that is installed run npm run build

Update your code via Github

  1. run composer require wpboilerplate/wpb-updater-checker-github

  2. Now run composer update

  3. 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/acrosswp/date-formatter', 'file_path' => DATE_FORMATTER_PLUGIN_FILE, 'plugin_name_slug' => DATE_FORMATTER_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

  1. Adding BuddyBoss Platform and Platform Pro dependency composer require wpboilerplate/wpb-buddypress-or-buddyboss-dependency and then add the below code in function load_dependencies after vendor autoload file included require_once( DATE_FORMATTER_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(), DATE_FORMATTER_FILES );
    }
  1. Adding BuddyBoss Platform dependency composer require wpboilerplate/wpb-buddyboss-dependency

  2. Adding WooCommerce dependency composer require wpboilerplate/wpb-woocommerce-dependency

  3. Adding ACF Pro dependency composer require wpboilerplate/acrossswp-acf-pro-dependency

  4. Adding View Analytics dependency composer require wpboilerplate/wpb-view-analytics-dependency

Releases

4 releases.

Tag
Published
v1.0.3 latest
Aug 21, 2024 2 years ago
Aug 21, 2024 2 years ago
Aug 21, 2024 2 years ago
Aug 21, 2024 2 years ago

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.