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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user