Get option value (api setting) in block
-
I am looking to modify the value of a wordpress options inside a gutenberg block.
Here is a succinct overview of the option:
function capacity_theme_options_styling() { register_setting('capacity_styling', 'capacity_options_styling', 'capacity_validate_sanitize_reset_styling'); add_settings_section( 'capacity_section_styling_background_color', esc_html__('Background color', 'capacity-plugin'), 'capacity_section_styling_background_color_html', 'capacity_styling' ); add_settings_field( 'capacity_background_color', esc_html__('Background color', 'capacity-plugin'), 'capacity_background_color_html', 'capacity_styling', 'capacity_section_styling_background_color', [ 'label_for' => 'capacity_background_color', 'class' => 'capacity-row', ] ); ... }
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Get option value (api setting) in block’ is closed to new replies.