- 01 Overview Carbon fields is a library which enables easy creation of custom (meta) fields in the WordPress administrat... 2 个月前
- 02 Plugin Quickstart There is a separate package which loads Carbon Fields as a WordPress plugin. Here's how to set it up: Brows... 2 个月前
- 03 Quickstart This guide will show you how to install the Carbon Fields library using composer. To install Carbon Fields ... 2 个月前
- 04 Section-based page layout / Flexible Content In this guide, we'll create a section-based template which provides the end user with multiple section type... 2 个月前
- 05 Adding social links to your site's header We'll create an admin section which allows admins to enter a link for Facebook and Twitter for their header... 2 个月前
- 06 Repeating Groups In this guide we'll create a repeating group field (also known as a Complex field) which we'll use to popu... 2 个月前
- 07 Changing sidebar options The following snippet allows you to change the default sidebar options for sidebars created through the Sid... 2 个月前
- 08 Term meta In this guide we'll add a "Color" field to categories and then display them in a color-coded list. First, l... 2 个月前
- 09 Using field values This guide will show how to get and output field values in your theme. The use-case we will be discussing i... 2 个月前
- 10 Plugin Quickstart There is a separate package which loads Carbon Fields as a WordPress plugin. Here's how to set it up: Brows... 2 个月前
- 11 Quickstart This guide will show you how to install the Carbon Fields library using composer. To install Carbon Fields ... 2 个月前
- 12 Support for Bedrock & similar frameworks Carbon Fields has assets that need to be in your public directory in order to be loaded which can be proble... 2 个月前
- 13 Compacting input variables to fit within PHP's max_input_vars In some cases forms can end up having hundreds of inputs which can cause the save request to exceed PHP's ... 2 个月前
- 14 Field Name Patterns A Field Name Pattern is a string which is used as a way to refer to a specific field when using the PHP or ... 2 个月前
- 15 JavaScript API Carbon Fields provide a useful JavaScript API on administration screens with visible containers which you c... 2 个月前
- 16 JavaScript Hooks To modify the behavior of existing fields, Carbon Fields exposes several hooks. See @wordpress/hooks for mo... 2 个月前
- 17 PHP Hooks There are several hooks that allow you to include your custom classes and functionality at the right time, ... 2 个月前
- 18 Integrating with WP_Query Carbon Fields allow you to make Post, Term and User queries based on fields even inside complex fields. Exa... 2 个月前
- 19 Custom Datastore The following example allows you to store theme options fields as a serialized array instead of multiple da... 2 个月前
- 20 Programatically updating field values Carbon Fields allow you to update field values programatically through the set of carbon_set_{container_ty... 2 个月前
- 21 WPML Support Carbon Fields provide out-of-the-box support for WPML with the small exception of the Theme Options contain... 2 个月前
- 22 Comment Meta Comment meta containers add extra fields to the comment edit screens. Field data is stored separately for e... 2 个月前
- 23 Condition Types post_meta conditions Name Description 'post_format' Check against the post format. Use a blank string as th... 2 个月前
- 24 Conditional Display Containers are very flexible in terms of display options. By default, containers show on all related entiti... 2 个月前
- 25 Gutenberg Blocks WordPress 5 introduces a new content creation experience with its new editor called Gutenberg. Gutenberg is... 2 个月前
- 26 Nav Menu Item Nav Menu Item containers are used to extend the Nav Menu edit screens with additional fields. Field data is... 2 个月前
- 27 Network Network containers are used to add pages with options in the Multisite network administration only. Field d... 2 个月前
- 28 Post Meta Custom Field containers are used to extend the post edit screens with additional fields. Field data is stor... 2 个月前
- 29 Tabs The tabs allow you to group multiple fields under different tab panels using the Container method add_tab(... 2 个月前
- 30 Term Meta Term meta containers are used to extend the term edit screens with additional fields. Field data is stored ... 2 个月前
- 31 Theme Options Theme option containers are used to add pages with options in the back-end. Field data is stored as options... 2 个月前
- 32 Usage A Container is a group of custom fields and display options. Containers are displayed on different parts of... 2 个月前
- 33 User Meta User meta containers add extra fields to the user edit screens. Field data is stored separately for each us... 2 个月前
- 34 Widgets The Widget container is used to create custom widgets for your theme. Each widget is defined as a PHP clas... 2 个月前
- 35 Container Conditions Carbon Fields allows you to define your own container conditions as well. Here's how to define and use a "F... 2 个月前
- 36 Creating Custom Field Creating new custom fields has been made easier with the release of the latest version. To add the new fiel... 2 个月前
- 37 Extending Fields Carbon Fields can be easily extended. Each of the Field classes is optionally declared, and each function i... 2 个月前
- 38 Field As A Library Carbon Fields allows you to create custom field libraries that you can distribute and allow users to instal... 2 个月前
- 39 Field In A Theme Carbon Fields allows you to define custom fields inside your theme if you have theme-specific fields that y... 2 个月前
- 40 Association This field allows to select and reorder multiple post type posts, taxonomy terms, users or comments. Useful... 2 个月前
- 41 Checkbox The checkbox field create a single tick-able option with a label next to it. Field::make( 'checkbox', 'crb_... 2 个月前
- 42 Color Renders a color picker with an optional palette. Colors are represented with six hexadecimal digits prefixe... 2 个月前
- 43 Complex Complex fields act as containers to which you can add multiple groups of fields. It is represented as a tab... 2 个月前
- 44 Conditional Logic You can apply conditional logic to a field, using set_conditional_logic( $rules ), to show or hide it base... 2 个月前
- 45 Date Time Renders a time and date picker field. Field::make( 'date_time', 'eta', __( 'Estimated time of arrival' ) ) ... 2 个月前
- 46 Date Renders a date picker. Field::make( 'date', 'crb_event_start_date', __( 'Event Start Date' ) ) Config metho... 2 个月前
- 47 File Renders a file upload field with a preview thumbnail of the uploaded file. The built-in WordPress file hand... 2 个月前
- 48 Footer Scripts !> Applicable to Theme Options container only. Displays a text area, the contents of which will be automati... 2 个月前
- 49 Gravity Form Similar to select field, but automatically populated with all available gravity forms. If the Gravity Forms... 2 个月前
- 50 Header Scripts !> Applicable to Theme Options container only. Displays a text area, the contents of which will be automati... 2 个月前
- 51 Hidden Adds a hidden field. Field::make( 'hidden', 'crb_hidden_data', __( 'Hidden Data' ) ) Config methods Refer t... 2 个月前
- 52 HTML Render custom HTML markup. Field::make( 'html', 'crb_html', __( 'Section Description' ) ) ->set_html( spri... 2 个月前
- 53 Image Renders an image upload button with a preview thumbnail of the uploaded image. The built-in WordPress file ... 2 个月前
- 54 Map The map field provides a Google-powered map with an address search field. Field::make( 'map', 'crb_map', __... 2 个月前
- 55 Media Gallery This field allows adding multiple attachments from the Media. The returned data contains an array of the At... 2 个月前
- 56 Multiselect Creates a multiselect (tag-style) box with pre-defined options. Field::make( 'multiselect', 'crb_available_... 2 个月前
- 57 oEmbed This field allows you to enter a URL and it will display a live preview of the source. Internally, the fiel... 2 个月前
- 58 Radio Image Behaves exactly like a Radio field, but the passed option values should be fully qualified urls to image th... 2 个月前
- 59 Radio Similar to the Select field, but instead of in a select box, options are rendered as a set of radio buttons... 2 个月前
- 60 Rich Text This field renders the built-in WordPress tinyMCE WYSIWYG editor. Field::make( 'rich_text', 'crb_sidenote',... 2 个月前
- 61 Select Creates a select box with pre-defined options. Field::make( 'select', 'crb_select', __( 'Choose Options' ) ... 2 个月前
- 62 Separator Creates visual separator between adjacent fields. Has aesthetic function only, no data is saved. Field::mak... 2 个月前
- 63 Set The set field creates a list of tick-able options (checkboxes). This field enables selection of multiple op... 2 个月前
- 64 Sidebar Adds a drop-down field that lists existing sidebars and provides the ability to add new sidebars to the sit... 2 个月前
- 65 Text The text field is the simplest and most generic field. It renders a text input field. Field::make( 'text', ... 2 个月前
- 66 Textarea Multiline text input with HTML allowed. Field::make( 'textarea', 'crb_phone_numbers', __( 'Phone Numbers' )... 2 个月前
- 67 Time Renders a time picker field. Field::make( 'time', 'opens_at', __( 'Opening time' ) ) Config methods set_att... 2 个月前
- 68 Usage Fields are the building block of every container. New field are created using the make method Field::make... 2 个月前