inc2734/wp-profile-box

A library to add profile box for WordPress.

Installs: 2 119

Dependents: 2

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 0

Open Issues: 0

Language:Shell

2.2.1 2020-02-04 05:32 UTC

This package is auto-updated.

Last update: 2020-05-04 06:08:58 UTC


README

Build Status 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 user_id="(Optional)"]

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

Support social accounts

  • Twitter
  • Facebook
  • 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;
	}
);