Download the PHP package basduchambre/carbon-fields-urlpicker without Composer
On this page you can find all versions of the php package basduchambre/carbon-fields-urlpicker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download basduchambre/carbon-fields-urlpicker
More information about basduchambre/carbon-fields-urlpicker
Files in basduchambre/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/iamntz/carbon-fields-urlpicker
Informations about the package carbon-fields-urlpicker
Carbon Field: urlpicker
(this is an extension of Carbon Fields plugin)
Adds a urlpicker field type to Carbon Fields. Install using composer:
You're using Carbon Fields v3? Then install it from the v3 branch!
(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.