Download the PHP package getolympus/olympus-dionysos-field-wordpress without Composer
On this page you can find all versions of the php package getolympus/olympus-dionysos-field-wordpress. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download getolympus/olympus-dionysos-field-wordpress
More information about getolympus/olympus-dionysos-field-wordpress
Files in getolympus/olympus-dionysos-field-wordpress
Download getolympus/olympus-dionysos-field-wordpress
More information about getolympus/olympus-dionysos-field-wordpress
Files in getolympus/olympus-dionysos-field-wordpress
Vendor getolympus
Package olympus-dionysos-field-wordpress
Short Description WordPress field, this component is a part of the Olympus Dionysos fields.
License MIT
Homepage https://github.com/GetOlympus/olympus-dionysos-field-wordpress
Package olympus-dionysos-field-wordpress
Short Description WordPress field, this component is a part of the Olympus Dionysos fields.
License MIT
Homepage https://github.com/GetOlympus/olympus-dionysos-field-wordpress
Please rate this library. Is it a good library?
Informations about the package olympus-dionysos-field-wordpress
Dionysos Wordpress Field
This component is a part of the Olympus Dionysos fields for WordPress. It uses a duplicate
findPostsWordPress custom modal to manage field.
Table of contents
Contributing
Field initialization
Use the following lines to add a wordpress field in your WordPress admin pages or custom post type meta fields:
Variables definitions
| Variable | Type | Default value if not set | Accepted values |
|---|---|---|---|
title |
String | 'Code' |
empty |
default |
Array | empty | empty |
description |
String | empty | empty |
field |
String | ID |
depends on type value |
multiple |
Boolean | false |
true or false |
type |
String | post |
see Accepted types |
settings |
Array | empty | depends on type value |
Notes:
- Set
multipletotrueto display checkboxes instead of radio buttons fieldvariable is used to let you retrieve the data you need, depending ontypevalue (for example: in the'type' => 'term'case, you'll getterm_idby default)
Texts definition
| Code | Default value | Definition |
|---|---|---|
t_addblock_title |
Click on the edit button | Used as a notice to help users when there is no label yet |
t_addblock_description |
Click on the "+" button to add your item. | Used as a notice to help users in single format |
t_addblocks_description |
Click on the "+" button to add a new item. | Used as a notice to help users in multiple format |
t_addblock_label |
Add | Add button label |
t_editblock_label |
Edit | Edit button label |
t_removeblock_label |
Remove | Remove button label |
t_modaltitle_label |
Choose a content | Modal title |
t_modalclose_label |
Close | Modal close button label |
t_modalsearch_label |
Search | Modal search button label |
t_modalsubmit_label |
Select | Modal select button label |
t_ajaxerror_label |
No item found | Error message on ajax failure |
Accepted types
categoriesorcategory(seeget_categorieson WordPress reference forfieldandsettingsvariables)menusormenu(seewp_get_nav_menuson WordPress reference forfieldandsettingsvariables)pagesorpage(seeget_pageson WordPress reference forfieldandsettingsvariables)postsorpost(seewp_get_recent_postson WordPress reference forfieldandsettingsvariables)posttypesorposttype(seeget_post_typeson WordPress reference forfieldandsettingsvariables)tagsortag(seeget_the_tagson WordPress reference forfieldandsettingsvariables)taxonomiesortaxonomy(seeget_taxonomieson WordPress reference forfieldandsettingsvariables)termsorterm(seeget_termson WordPress reference forfieldandsettingsvariables)usersoruser(seeget_userson WordPress reference forfieldandsettingsvariables)
Retrive data
Retrieve your value from Database with a simple get_option('my_wordpress_field_id', []) (see WordPress reference):
Release history
| Version | Note |
|---|---|
| 0.0.21 | Add checks on ajax call |
| 0.0.20 | Add wp-util WordPress integration |
| 0.0.19 | Fix display and WordPress core functions integration |
Contributing
- Fork it (https://github.com/GetOlympus/olympus-dionysos-field-wordpress/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.
All versions of olympus-dionysos-field-wordpress with dependencies
PHP Build Version
Package Version
No informations.
The package getolympus/olympus-dionysos-field-wordpress contains the following files
Loading the files please wait ...