Download the PHP package getolympus/olympus-dionysos-field-font without Composer
On this page you can find all versions of the php package getolympus/olympus-dionysos-field-font. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download getolympus/olympus-dionysos-field-font
More information about getolympus/olympus-dionysos-field-font
Files in getolympus/olympus-dionysos-field-font
Package olympus-dionysos-field-font
Short Description Font field, this component is a part of the Olympus Dionysos fields.
License MIT
Homepage https://github.com/GetOlympus/olympus-dionysos-field-font
Informations about the package olympus-dionysos-field-font
Dionysos Font Field
This component is a part of the Olympus Dionysos fields for WordPress.
Field initialization
Use the following lines to add an font field
in your WordPress admin pages or custom post type meta fields:
Variables definition
Variable | Type | Default value if not set | Accepted values |
---|---|---|---|
title |
String | 'Font' |
empty |
default |
Array | empty | empty |
description |
String | empty | empty |
Retrive data
Retrieve your value from Database with a simple get_option('my_font_field_id', [])
(see WordPress reference).
Below, a json_encode()
example to understand how data are stored in Database:
And below, a simple example to show how to iterate on the data array in PHP
:
Release History
0.0.2
- Add ajax call
- Add display
- Add Google fonts
0.0.1
- Initial commit
Contributing
- Fork it (https://github.com/GetOlympus/olympus-dionysos-field-font/fork)
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -am 'Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request
Built with ♥ by Achraf Chouk ~ (c) since a long time.