Search by

inc2734 / wp-profile-box

inc2734

A library to add profile box for WordPress.

Package info

github.com/inc2734/wp-profile-box

pkg:composer/inc2734/wp-profile-box

Statistics

Installs: 7 565

Dependents: 2

Suggesters: 0

Stars: 1

Open Issues: 1

2.6.2 2026-10-25 07:10 UTC

This package is auto-updated.

Last update: 2026-10-25 07:12:48 UTC


README

CI Latest Stable Version License

Install

$ composer require inc2734/wp-profile-box

How to use

<?php
new \Inc2734\WP_Profile_Box\Bootstrap();

// shortcode
[wp_profile_box title="(Optional)" user_id="(Optional)"]

The profile box don't have styles. So you need create CSS for this.

Development

Use Node.js 24.22.1 (selected by Volta), npm 11.18.0 or later, and Docker.

npm ci
npm start
npm test
npm stop

PHP lint and PHPUnit run in a separate environment configured by .wp-env.tests.json on port 8889. Each check installs its Composer dependencies and stops the test environment afterward, including when it fails. The development environment remains running. Use npm run test:php:stop to stop an interrupted test environment.

Support social accounts

  • Twitter
  • X
  • Facebook
  • Threads
  • Instagram
  • Pinterest
  • YouTube
  • Linkedin
  • WordPress
  • Tumblr
  • amazon
  • LINE

Filter hooks

inc2734_wp_profile_box_sns_accounts

/**
 * Customize sns accounts
 *
 * @param $accounts array
 * @return array
 */
add_filter(
	'inc2734_wp_profile_box_sns_accounts',
	function( $accounts ) {
		return $accounts;
	}
);

inc2734_wp_profile_box_avatar_size

/**
 * Customizer avatar size
 *
 * @param $size
 * @return $size
 */
add_filter(
	'inc2734_wp_profile_box_avatar_size',
	function( $size ) {
		return $size;
	}
);