{"id":18841308,"url":"https://github.com/dmhendricks/carbon-fields-loader","last_synced_at":"2025-04-14T07:12:03.852Z","repository":{"id":88694277,"uuid":"97792245","full_name":"dmhendricks/carbon-fields-loader","owner":"dmhendricks","description":"[DEPRECATED] A WordPress plugin that loads the Carbon Fields framework.","archived":false,"fork":false,"pushed_at":"2018-03-03T00:37:02.000Z","size":1676,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-10T12:07:17.184Z","etag":null,"topics":["carbon-fields","custom-fields","wordpress-framework","wordpress-plugin"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dmhendricks.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-07-20T05:00:59.000Z","updated_at":"2023-10-09T00:52:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"10e14730-ab54-41d6-a580-776ecae53ee7","html_url":"https://github.com/dmhendricks/carbon-fields-loader","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmhendricks%2Fcarbon-fields-loader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmhendricks%2Fcarbon-fields-loader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmhendricks%2Fcarbon-fields-loader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmhendricks%2Fcarbon-fields-loader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dmhendricks","download_url":"https://codeload.github.com/dmhendricks/carbon-fields-loader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248837286,"owners_count":21169374,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["carbon-fields","custom-fields","wordpress-framework","wordpress-plugin"],"created_at":"2024-11-08T02:50:44.745Z","updated_at":"2025-04-14T07:12:03.843Z","avatar_url":"https://github.com/dmhendricks.png","language":"PHP","readme":"[![Author](https://img.shields.io/badge/author-Daniel%20M.%20Hendricks-lightgrey.svg?colorB=9900cc)](https://www.danhendricks.com)\n[![Latest Version](https://img.shields.io/github/release/dmhendricks/carbon-fields-loader.svg)](https://github.com/dmhendricks/carbon-fields-loader/releases)\n[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://paypal.me/danielhendricks)\n[![WP Engine](https://img.shields.io/badge/WP%20Engine-Compatible-orange.svg)](http://bit.ly/WPEnginePlans)\n[![GitHub License](https://img.shields.io/badge/license-GPLv2-yellow.svg)](https://raw.githubusercontent.com/dmhendricks/carbon-fields-loader/master/LICENSE)\n[![Twitter](https://img.shields.io/twitter/url/https/github.com/dmhendricks/carbon-fields-loader.svg?style=social)](https://twitter.com/danielhendricks)\n\n# Carbon Fields Loader Plugin for WordPress\n\n**DEPRECATION NOTICE:** This plugin has been deprecated in favor of the [official Carbon Fields plugin](https://github.com/htmlburger/carbon-fields-plugin/).\n\nThis is a simple plugin that may be used to load the latest **_release_** version of [Carbon Fields](http://carbonfields.net/).\n\nThis plugin is **_not_** supported or maintained by [htmlBurger](https://htmlburger.com) and team, the creators and maintaners of [Carbon Fields](https://carbonfields.net/). The author of this loader plugin has no affiliation with htmlBurder or the Carbon Fields team.\n\n* [Official Carbon Fields Framework Documentation](https://carbonfields.net/docs/)\n* [Usage Examples for this Loader Plugin](https://github.com/dmhendricks/carbon-fields-loader/wiki/)\n\n## Requirements\n\n* WordPress 4.0 or higher\n* PHP 5.3 or higher (using the `CFL_OPTIONS` constant requires PHP 7 or higher)\n\n**Note:** This plugin will deactivate itself if a legacy version Carbon Fields is loaded (either via plugin or as a dependency of a plugin/theme). Legacy versions and current releases of Carbon Fields are not compatible and may not be concurrently loaded.\n\n## Options\n\nBecause we don't like \"admins\" monkeying around and disabling (or touching) things, options are set with constants in `wp-config.php`.\n\n### PHP 5.3 and Higher\n\n```\ndefine( 'CFL_MIN_VERSION', '2.1.1' );\n```\n\nSets the minimum supported loaded version of Carbon Fields to \u003e=2.1.1.\n\n```\ndefine( 'CFL_DISABLE_UPDATE_NOTIFICATION', true );\n```\n\nDisables update notifications for this plugin. (Only relevant if [GitHub Updater](https://github.com/afragen/github-updater) is also installed.) This can be useful if you use GitHub Updater for other plugins but don't want your code to break because somebody clicked \"Update\" without testing first.\n\n```\ndefine( 'CFL_REMOVE_PLUGIN_ACTIONS', 'deactivate' );\n```\n\nRemoves the \"Deactivate\" action link for this plugin from Plugins \u003e Installed Plugins.\n* Set `CFL_REMOVE_PLUGIN_ACTIONS` to `true` to remove **_all_** action links.\n* Alternatively, you may also set `CFL_DISABLE_DEACTIVATE` to true to remove the _Deactivate_ action link only.\n\n```\ndefine( 'CFL_HIDE_PLUGIN', true );\ndefine( 'CFL_HIDE_GITHUB_UPDATER', true );\n```\n\nHides this plugin and GitHub Updater from Plugins \u003e Installed Plugins in WP Admin.\n\n```\ndefine( 'CFL_DESCRIPTION_NOTICE', '\u003cstrong\u003eThis plugin is required for the site to work!\u003c/strong\u003e' );\n```\n\nAllows you to append text to this plugin's description in Plugins \u003e Installed Plugins.\n\n### PHP 7.0 and Higher\n\nYou may use an array for the `CFL_REMOVE_PLUGIN_LINKS` constant:\n\n```\ndefine( 'CFL_REMOVE_PLUGIN_LINKS', ['deactivate', 'edit'] );\n```\n\nThis removes both the 'Deactivate' and 'Edit' action links from Plugins \u003e Installed Plugins.\n\nHowever, since you're running a [non-legacy](https://en.wikipedia.org/wiki/PHP#Release_history) version of PHP, you may be more concise.\n\n```\ndefine( 'CFL_OPTIONS', array( ... ) );\n```\n\n#### Parameters\n\n* `min_version` (string) - Set the minimum supported loaded version of Carbon Fields. This is short form if you don't want to use `deps`.\n* `deps` (array) - Set minimum versions for PHP (`'php'`) and Carbon Fields (`'carbon_fields'`). **NB!** The minimum version of Carbon Fields set in `deps` takes precedence over the `min_version` setting. If you have boths set, this value will be used.\n* `hide_plugins` (mixed) - If set to `true` (bool), hides this plugin *and* GitHub Updater. Array `['carbon-fields-loader', 'github-updater']` or string `'carbon-fields-loader'` may be used selectively choose.\n* `remove_actions` (mixed) - If set to `true` (bool), removes *all* action links (ie, \"Deactivate\" and \"Edit\"). Array `['deactivate', 'edit']` (\"Deactivate\" and \"Edit\" links) or string `'deactivate'` (\"Deactivate\" link only) may be used to selectively choose.\n* `disable_updates` (bool) - If set to true, disables update notifications for **_this_** plugin only.\n* `description_notice` (string) - Allows you to append text to this plugin's description in the same way that defining `CFL_DESCRIPTION_NOTICE` does.\n\n#### Examples\n\n```\ndefine( 'CFL_OPTIONS' , ['min_version' =\u003e '2.1.1', 'hide_plugins' =\u003e true ] );\n```\n\n* Carbon Fields 2.1.1 or higher must be loaded, else notice is displayed.\n* This plugin *and* [GitHub Updater](https://github.com/afragen/github-updater) will be hidden from Plugins \u003e Installed Plugins.\n\n```\ndefine( 'CFL_OPTIONS' , ['deps' =\u003e [ 'carbon_fields' =\u003e '2.1.1', 'php' =\u003e '5.3.29' ], 'hide_plugins' =\u003e ['carbon-fields-loader', 'github-updater'], 'disable_updates' =\u003e true ] );\n````\n\n* Carbon Fields \u003e=2.1.1 and \u003e=PHP 5.3.29 must be loaded, else notice is displayed.\n* This plugin and GitHub Updater are hidden from Plugins \u003e Installed Plugins.\n* Update notifications are disabled for this plugin. (If [GitHub Updater](https://github.com/afragen/github-updater) is installed.)\n\n```\ndefine( 'CFL_OPTIONS' , ['min_version' =\u003e '2.1.1', 'hide_plugins' =\u003e 'carbon-fields-loader', 'remove_actions' =\u003e ['deactivate', 'edit'], 'disable_updates' =\u003e true ] );\n```\n\n* Carbon Fields 2.1.1 or higher must be loaded, else notice is displayed.\n* This plugin (but not GitHub Updater) is hidden from Plugins \u003e Installed Plugins.\n* Removes \"Deactivate\" and \"Edit\" action links from this plugin.\n* Update notifications are disabled for this plugin.\n\n## Frequently Asked Questions\n\n**_Q: I get a fatal error when I activate this plugin. What do I do?_**\n\nA: This may occur when you are running an outdated version of the Carbon Fields plugin and/or have a plugin/theme that includes and outdated version as a dependency. Although this plugin does appropriate version checking, other plugins/themes may not. The only fix is the delete this one or update the plugins/themes that require it.\n\n**_Q: How do I properly use this loader with my plugin/theme?_**\n\nPlease see the wiki for [usage examples](https://github.com/dmhendricks/carbon-fields-loader/wiki#usage-with-plugintheme).\n\n**_Q: How do I update this plugin to use a newer version or a different branch of the Carbon Fields Framework?_**\n\nA: If you just want to pull the latest release version of Carbon Fields from the repo, run `composer update`. If you want to pull a different branch, open *composer.json* and edit the line: `\"htmlburger/carbon-fields\": \"^2.1.1\"`. Set the version to `\"dev-branch\"` (for example, if you want the *development* branch, set it to `\"dev-development\"`), then run `composer update`.\n\n**_Q: How can I get auto-updates?_**\n\nA: Install [GitHub Updater](https://github.com/afragen/github-updater).\n\n## Change Log\n\nRelease changes are noted on the [Releases](https://github.com/dmhendricks/carbon-fields-loader/releases) page.\n\n#### Branch: `master`\n\n* None since release\n\n## Credits\n\nPlease support [humans.txt](http://humanstxt.org/). It's an initiative for knowing the people behind a web site. It's an unobtrusive text file that contains information about the different people who have contributed to building the web site.\n\n**Carbon Fields**\n\n\tURL: http://carbonfields.net/\n\tAuthor: htmlBurger.com\n\tTwitter: @htmlburger\n\tAuthor URI: https://htmlburger.com/\n\tLocation: London, England\n","funding_links":["https://paypal.me/danielhendricks"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmhendricks%2Fcarbon-fields-loader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdmhendricks%2Fcarbon-fields-loader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmhendricks%2Fcarbon-fields-loader/lists"}