Fix Workflow tab layout: - Remove section title and description - Match layout of General and Advanced tabs
This commit is contained in:
@ -831,9 +831,27 @@ function wpa_superstar_settings_page() {
|
|||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
|
||||||
// Register Workflow settings
|
// Add Workflow section
|
||||||
function wpa_superstar_workflow_section_callback() {
|
function wpa_superstar_workflow_section() {
|
||||||
echo '<p>Configure workflow automation settings to enhance your content management process.</p>';
|
// 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
|
// Add Auto Upload Images setting
|
||||||
@ -859,28 +877,5 @@ function wpa_superstar_auto_upload_images_callback() {
|
|||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
|
||||||
// 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',
|
|
||||||
'Workflow Settings',
|
|
||||||
'wpa_superstar_workflow_section_callback',
|
|
||||||
'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 Workflow section
|
// Add Workflow section
|
||||||
add_action('admin_init', 'wpa_superstar_workflow_section');
|
add_action('admin_init', 'wpa_superstar_workflow_section');
|
Reference in New Issue
Block a user