Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/palmiak/simple_acf_avatar
https://github.com/palmiak/simple_acf_avatar
Last synced: 13 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/palmiak/simple_acf_avatar
- Owner: palmiak
- Created: 2018-08-20T20:26:46.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-08-23T21:57:12.000Z (over 6 years ago)
- Last Synced: 2024-11-07T17:59:13.647Z (2 months ago)
- Language: PHP
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple ACF Avatar
## Instalation
- Install this plugin by uploading to wp-content/plugins
- Create image field `avatar` in Advanced Custom Fields - remember it has to be a image field and have to return ID## Usage
Simply use WordPress avatars functions. This plugin hooks into `get_avatar_url` to change it.It works great with Timber's resize filter.
## Filters
`simple_acf_avatar_use_gravatar` - default value `false` - if set to `false` it hide gravatars from admin panel and user edit
`simple_acf_avatar_acf_field_name` - default value `avatar` - the name of the ACF field
`simple_acf_avatar_size` - default value 'thumbnail' - name of image size used. If you want to use a custom size remember to use `add_image_size`