true, 'margin' => true, '__experimentalDefaultControls' => array( 'padding' => true, 'margin' => true ) ); // Add color support $args['supports']['color'] = array( 'text' => true, 'background' => true, '__experimentalDefaultControls' => array( 'text' => true, 'background' => true ) ); // Add border support $args['supports']['border'] = array( 'radius' => true, '__experimentalDefaultControls' => array( 'radius' => true ) ); } return $args; }, 10, 2); } add_action('init', 'blynex_enable_image_block_supports', 5); /** * Debug function to verify block supports are enabled * Add ?debug_blocks=1 to any admin URL to see block configurations */ function blynex_debug_block_supports() { if (isset($_GET['debug_blocks']) && $_GET['debug_blocks'] == '1' && current_user_can('manage_options')) { echo '
' . print_r($image_block->supports ?? 'No supports found', true) . ''; echo '
' . print_r($cover_block->supports ?? 'No supports found', true) . ''; echo '
' . print_r($settings['color'] ?? 'No color settings', true) . ''; echo '
' . print_r($settings['spacing'] ?? 'No spacing settings', true) . ''; echo '