Download the PHP package 3615yeye/carbon-fields-urlpicker without Composer
On this page you can find all versions of the php package 3615yeye/carbon-fields-urlpicker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download 3615yeye/carbon-fields-urlpicker
More information about 3615yeye/carbon-fields-urlpicker
Files in 3615yeye/carbon-fields-urlpicker
Package carbon-fields-urlpicker
Short Description Carbon Fields extension, that adds a URL picker field type.
License GPL-2.0+
Homepage https://github.com/3615yeye/carbon-fields-urlpicker
Informations about the package carbon-fields-urlpicker
Carbon Field: urlpicker
Warning : I'm just forking to use this package in my project without downgrading the stability for the rest of my dependencies. Not meant to be stable.
(this is an extension of Carbon Fields plugin)
(first, make sure you have "minimum-stability": "dev" set in composer.json)
Or by installing as a WP plugin (composer is recommended though; installing as a plugin may throw an error).
Return values:
The field will return an associative array with the following values:
Demo
https://img.iamntz.com/jing/video_2017-09-01__12_22.mp4
Example
Registering A Field
This goes in your functions.php as with other Carbon Fields fields. The only difference is that the type is urlpicker.
Using Field Values
Note that the anchor field will return 0 or 1, depending on whether the checkbox is ticked next to "Open link in a new tab".
Found this useful?
You can get hosting (and receive $10 credit!), donate or buy me a gift.