inc2734/wp-profile-box
最新稳定版本:2.6.0
Composer 安装命令:
composer require inc2734/wp-profile-box
包简介
A library to add profile box for WordPress.
README 文档
README
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.
Support social accounts
- X
- Threads
- YouTube
- 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;
}
);
统计信息
- 总下载量: 7.26k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 2
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2017-09-14