Download the PHP package getolympus/olympus-dionysos-field-oembed without Composer
On this page you can find all versions of the php package getolympus/olympus-dionysos-field-oembed. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download getolympus/olympus-dionysos-field-oembed
More information about getolympus/olympus-dionysos-field-oembed
Files in getolympus/olympus-dionysos-field-oembed
Package olympus-dionysos-field-oembed
Short Description oEmbed field, this component is a part of the Olympus Dionysos fields.
License MIT
Homepage https://github.com/GetOlympus/olympus-dionysos-field-oembed
Informations about the package olympus-dionysos-field-oembed
Dionysos oEmbed Field
This component is a part of the Olympus Dionysos fields for WordPress.
Table of contents
Contributing
Field initialization
Use the following lines to add an oembed 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 | 'oEmbed' |
empty |
default |
Array | empty | empty |
description |
String | empty | empty |
Texts definition
Code | Default value | Definition |
---|---|---|
t_addblock_label |
Enter URL here | Used as an URL input placeholder |
t_removeblock_label |
Clear | Used as a Clear button area title |
Retrive data
Retrieve your value from Database with a simple get_option('my_oembed_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
Version | Note |
---|---|
0.0.5 | Fix jQuery integration on domReady |
0.0.4 | Fix JS ready |
0.0.3 | Better CSS display |
Contributing
- Fork it (https://github.com/GetOlympus/olympus-dionysos-field-oembed/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.