Settings is what you define in registerBlockType()
in the block.js file. Here you have to add most basic settings like title:, category: and icon:. (Handbook link).
Attributes are optional, also in registerBlockType()
. You can extract values from markup i.e. for saving the block content (Handbook link).
Properties get passed from the editor. You can find them in the edit: and save: function. Here you can call the optional attributes like ‘props.attributes’ (Handbook link).
Maybe it’s not the best explanation, but I hope you get an idea. ;o)
Related Posts:
- How to Create a Custom WordPress Install Package?
- Fallback when Transient API fails
- How to Save Different Settings Options Using Settings API and/or the Theme Optimizer
- Putting my site live
- Can’t save checkbox option
- Work flow for multiple developers
- Cannot save using register_setting
- The issue of redirecting my site to a new domain
- Are transients garbage collected?
- How to pass variable to add_settings_section() callback?
- Difference between Option_Group and Option_Name in Register_Settings
- Why does WordPress use serialize rather than json_encode for the options table? [duplicate]
- Plugin options will not save in database
- Settings API – creating reusable form elements?
- Is it possible to use Gutenberg on the front-end?
- Efficient way of saving plugin options
- store simple data in get_option()
- register_setting() vs add_option()
- Where to hook register_settings for Settings API when also want to update options outside of Settings API?
- Using Primary Color in Plugin Block
- How much string content can I store in an option?
- How to update widget from widget() function?
- Why isn’t get_option array contents displaying?
- Add custom meta box on Post page
- Settings API erases itself?
- Proper use of option_page_capability_{$page_name}
- On Install, which code sets the ‘home’ option?
- Can I use a space in an option name/key?
- How to save WordPress Options as an array?
- How to verify this checkbox is checked?
- What to use , set_transient, set_option or file system? [closed]
- Settings API get_option best practices
- Deploy pre-configured database
- Gutenberg: How to mix dynamic and static output?
- Tab from Settings API resetting all options with INSERT INTO [closed]
- display all posts in wordpress admin crashing after 999 screen option
- get_option array value defaults and best practices
- Add an option to a Child theme of Twenty Eleven
- The Settings API – What is the purpose of default value in register_setting?
- WordPress options page not saving
- How to store a value on WP_option table
- Two settings_fields in one form
- Custom blog settings
- wp_usermeta wp_usersettings
- WordPress slugs and 404 handling takes preference over folders in site root?
- How to set wp_editor to be email friendly?
- i changed my wordpress address url in SETTINGS – GENRERAL – wordpress address site url. cannot login anymore
- Functions to edit wp-config.php [duplicate]
- Saving plugin options page
- Move Custom Fields on General Settings Page to New Location
- Transients API conditional
- Testing for addon plugin activated
- How can I have a common background color across multiple WordPress blocks?
- Gutenberg Block – Post Featured Image Filter Hook
- Where have the Privacy Settings gone in WordPress 3.5?
- Is there any other place – besides a theme, a plugin, or a mu-plugin – that an option page might conceivably be used?
- How to save custom settings api fields with custom section fuction
- Custom options in plugin, register_settings not working as no options.php?
- Change the style of h1, h2, only in post entry
- How can I increase the font sizes used by the WordPress visual and HTML post editors?
- Which Hook can I use when creating unique post but not update/save/delete
- How to use update_option() without replacing/losing the old value?
- Settings API and ‘type’ => ‘font’
- Create a counter variable in wp_options that increments when submit button is pressed
- Options page: values don’t show up in dashboard
- WordPress Settings API settings not saving for some users
- Sharing Buttons not Working – Sharing Settings [closed]
- Character \ appearing before ‘ after saving a settings page
- How to add a Reset to Defaults button with Settings API?
- Settings API no update status? (refering to the yellow bar when you save settings)
- PHP class to add pages and fields in admin panel
- get_option() and update_option() in a transaction (for an autoincrement value)
- How to change color of a word in text after WP update
- display category name based on its equivalent id
- How do I make mysite.com/comingsoon WordPress to become my main website’s WordPress?
- Is it possible to have a global parameter page which allows to configure other plugins in the same place?
- adding fade on mouseover to images
- Help to create the best plugin settings!
- Encoding matter – ? instead of € after settings field callback
- Problem with checkbox in Settings API
- How to Fix WordPress Not Saving Settings?
- Echo custom admin field into a is_single()
- Manual Backup – How to save to Firefox or Chrome (instead of IE which brings up popup I can’t get rid of)
- add image in dropdown select
- How can I change the default image behavior?
- AJAX save options inside class
- Dynamically Update Key in Associative Array When Saving Settings
- Incorporating the Settings API in WordPress Themes – by Chip Bennet
- WordPress options text format
- Caching of SQL queries
- Save Option on Database
- WordPress theme options tabs
- Importing WP settings to another host
- Only show theme option if it option exists
- Custom general settings (textarea field) don’t output HTML correctly
- Using get_option() for check box field
- Where to adjust presets for slider options “auto rotate” (3, 5, 10, 15 seconds)? [closed]
- Custom plugin not appearing
- change backend header options
- If Home Page Do Nothing, If All Else Show This Content