Personio
开发者 |
tomcat2111
|
更新时间 |
2020年3月5日 02:07 |
捐献地址: |
去捐款 |
PHP版本: |
5.2.4 及以上 |
WordPress版本: |
5.3 |
版权: |
GPLv2 or later |
版权网址: |
版权信息
|
详情介绍:
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');
}
安装:
After installing and activating this plugin you need to enter the client ID and secret on the settings page. You can get these from Personio.