This plugin provides a shortcode to display your employees from Personio.
Author: | Thomas Stägemann (profile at wordpress.org) |
WordPress version required: | 4.9 |
WordPress version tested: | 5.3.3 |
Plugin version: | 0.0.3 |
Added to WordPress repository: | 27-06-2019 |
Last updated: | 04-03-2020
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
|
Rating, %: | 0 |
Rated by: | 0 |
Plugin URI: | |
Total downloads: | 885 |
Active installs: | 10+ |
Click to start download |
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');
}