From 7af7010a8ef312bd59fd70c718261cf4f7aa53c3 Mon Sep 17 00:00:00 2001 From: Marcus Quinn Date: Sat, 15 Mar 2025 02:16:23 +0000 Subject: [PATCH] Fix Workflow tab layout: - Remove section title and description - Match layout of General and Advanced tabs --- admin/settings.php | 47 +++++++++++++++++++++------------------------- 1 file changed, 21 insertions(+), 26 deletions(-) diff --git a/admin/settings.php b/admin/settings.php index 1b38f50..f511fa7 100644 --- a/admin/settings.php +++ b/admin/settings.php @@ -831,9 +831,27 @@ function wpa_superstar_settings_page() { Configure workflow automation settings to enhance your content management process.

'; +// Add Workflow section +function wpa_superstar_workflow_section() { + // Register Workflow settings + register_setting('wpa_superstar_workflow', 'wpa_superstar_workflow_options'); + + // Add Workflow section + add_settings_section( + 'wpa_superstar_workflow_section', + '', // Remove section title + '__return_empty_string', // Remove section description + 'wpa_superstar_workflow' + ); + + // Add Auto Upload Images setting + add_settings_field( + 'auto_upload_images', + '', + 'wpa_superstar_auto_upload_images_callback', + 'wpa_superstar_workflow', + 'wpa_superstar_workflow_section' + ); } // Add Auto Upload Images setting @@ -859,28 +877,5 @@ function wpa_superstar_auto_upload_images_callback() {