Personio
v0.0.3tomcat2111 · 2019年6月27日 上架
This plugin provides a shortcode to display your employees from Personio.
- 正在使用
- 10+
- 评分
- 暂无
- 累计下载
- 1,635
- 最近更新
- 2020年3月5日
需要 WordPress 4.9+已测试到 5.3.28PHP 5.2.4+
贡献者
You can use such a shortcode to display the employees list or grid. By using the attributes you can filter the fields with a regular expression. You have to set up these fields in Personio. But on the settings page of this plugin you can see the available fields.
[personio_team office=Berlin gender=male custom_999999=foo]
If you need addtional filtering then you can add a hook like the following.
if (!function_exists('wp_personio_filter_team')) {
function wp_personio_filter_team($employees)
{
return array_filter($employees, function($employee){
return $employee->attributes->gender->value == 'male';
}, ARRAY_FILTER_USE_BOTH);
}
add_filter('wp_personio_filter_team', 'wp_personio_filter_team');
}