承接 seravo/wp-frontend-profile 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

seravo/wp-frontend-profile

Composer 安装命令:

composer require seravo/wp-frontend-profile

包简介

Allow user editing in frontend.

README 文档

README

Contributors: wpmarkuk,onnimonni
Donate link: http://markwilkinson.me/saythanks
Tags: profile, users, user meta
Requires at least: 4.0.1
Tested up to: 4.0.1
Stable tag: 0.3
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

WP Front End Profile allows users to edit their profile without going into the dashboard to do so.

Description

WP Front End Profile give you the ability to add a extensible user profile section to the front end of your WordPress website. By default the plugin adds two tabs to the front end profile. One of these titled profile allows a user to edit their user data including email, first and last names, URL and bio (description). The password tab allows a user to change their password for the site.

Plugin Extensibility

As the front end profile is rendered with tabs you can easily add your own tabs with your own fields to store user meta data. Tabs and fields are added through filters and all the saving of the data is taken care of for you.

You can add the following field types:

  • WYSIWYG
  • Select
  • Text Area
  • Checkbox
  • Password
  • Email
  • Text

See FAQs for how to add our own fields and tabs.

Profile Output

To output the front end profile you can use the following function in your template files:

wpfep_show_profile();

Installation

  1. Upload the plugin folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. Place <?php wpfep_show_profile(); ?> in your templates where you want the front end profile to display

Frequently Asked Questions

How do I add my own tab to the profile output?

Tabs can be added using the wpfep_tabs filter provided. Below is an example of how to add a tab after the default Profile and Password tabs.

<?php
function wpmark_add_tab( $tabs ) {
	
	/* add our tab to the tabs array */
	$tabs[] = array(
		'id' => 'wpmark_tab',
		'label' => 'Testing',
		'tab_class' => 'testing-tab',
		'content_class' => 'testing-content',
	);
	
	/* return all the tabs */
	return $tabs;
	
}

add_filter( 'wpfep_tabs', 'wpmark_add_tab', 30 );
?>

Note here the priority of 30 which means after the Profile tab (10) and the Password tab (20).

How do I add fields to tab?

Fields can be added to a tab using a dynamic filter named wpfep_fields_$tab_id. The tab ID is the id of tab as declared when adding the tab (see FAQ above). This means that you can add fields to any tab even the default tabs. Below is an example of how you would add fields to a tab with the ID of wpmark_tab:

<?php
function wpmark_add_tab_fields( $fields ) {
	
	$fields[] = array(
		'id' => 'testing_field',
		'label' => 'Testing',
		'desc' => 'Just testing.',
		'type' => 'text',
		'classes' => 'testing',
	);
	
	return $fields;

}

add_filter( 'wpfep_fields_wpmark_tab', 'wpmark_add_tab_fields', 10 );
?>

Are there any field IDs I cannot use?

Yes there are two field IDs reserved which are user_email and user_url. This is because you should not save new meta data with these keys are they already exist, but not in the user_meta table.

Changelog

0.1

  • Initial launch

seravo/wp-frontend-profile 适用场景与选型建议

seravo/wp-frontend-profile 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 14 次下载、GitHub Stars 达 0, 最近一次更新时间为 2015 年 09 月 04 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「user」 「wordpress」 「Settings」 「profile」 「frontend」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 seravo/wp-frontend-profile 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 seravo/wp-frontend-profile 我们能提供哪些服务?
定制开发 / 二次开发

基于 seravo/wp-frontend-profile 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 14
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 17
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 7
  • Forks: 18
  • 开发语言: PHP

其他信息

  • 授权协议: GPLv3
  • 更新时间: 2015-09-04