Refactor(Admin): Implement Settings API & AJAX save for Settings Manager

- Refactored WPALLSTARS_Settings_Manager to use WordPress Settings API.
- Stores settings in single 'wpallstars_options' array.
- Implemented robust AJAX saving for specific settings (e.g., color scheme, auto-upload) via WPALLSTARS_Admin_Manager::update_option.
- Updated JS and setting render functions for AJAX.
- Corrected admin menu registration and script enqueue hooks.
- Includes file renames from wp-allstars to wpallstars.
This commit is contained in:
2025-04-19 13:12:37 +01:00
parent 2870a43ae5
commit f65d648a82
26 changed files with 2191 additions and 1591 deletions
+4 -4
View File
@@ -50,14 +50,14 @@ class WP_Allstars_Readme_Manager {
* Display the readme tab content
*/
public static function display_tab_content() {
$readme = self::get_readme_content();
$readme_content = self::get_readme_content();
?>
<div class="wp-allstars-settings-content tab-content" id="readme">
<div class="wpa-pro-plugins">
<div class="wpa-pro-plugin">
<div class="wpallstars-pro-plugins">
<div class="wpallstars-pro-plugin">
<div class="wp-allstars-markdown-content">
<?php echo self::parse_markdown($readme['content']); ?>
<?php echo self::parse_markdown($readme_content['content']); ?>
</div>
</div>
</div>